From b694dbc2234928682efeb0ec6e79b97751036d4c Mon Sep 17 00:00:00 2001 From: iphydf Date: Sat, 22 Sep 2018 22:53:35 +0000 Subject: Add Cirrus CI configuration. This CI can run Bazel tests, because it supports IPv6. This is nice, because now we can run IPv6 tests on every PR. --- .cirrus.yml | 24 ++++++++++++++++++++++++ toxav/BUILD.bazel | 2 ++ toxcore/BUILD.bazel | 4 ++++ 3 files changed, 30 insertions(+) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 00000000..350c2422 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,24 @@ +--- +cirrus-ci_task: + container: + image: cirrusci/bazel:latest + cpu: 8 + memory: 12G + configure_script: + - sudo apt update + - sudo apt install -y + autopoint + libasound2-dev + libcv-dev + libhighgui-dev + libopenal-dev + - echo "build --jobs=50 --curses=no --verbose_failures" | sudo tee /etc/bazel.bazelrc + - echo "build --config=linux" | sudo tee -a /etc/bazel.bazelrc + - echo "build --config=gcc" | sudo tee -a /etc/bazel.bazelrc + - echo "build --config=remote" | sudo tee -a /etc/bazel.bazelrc + - cd .. && mv cirrus-ci-build c-toxcore + - git clone --depth=1 https://github.com/TokTok/toktok-stack cirrus-ci-build + - mv c-toxcore cirrus-ci-build + - cd - + test_all_script: + - bazel test -c opt -k //c-toxcore/... diff --git a/toxav/BUILD.bazel b/toxav/BUILD.bazel index 03130587..a2b57ee9 100644 --- a/toxav/BUILD.bazel +++ b/toxav/BUILD.bazel @@ -20,6 +20,7 @@ cc_library( cc_test( name = "ring_buffer_test", + size = "small", srcs = ["ring_buffer_test.cc"], deps = [ ":ring_buffer", @@ -56,6 +57,7 @@ cc_library( cc_test( name = "rtp_test", + size = "small", srcs = ["rtp_test.cc"], deps = [ ":rtp", diff --git a/toxcore/BUILD.bazel b/toxcore/BUILD.bazel index a34c328c..f041938a 100644 --- a/toxcore/BUILD.bazel +++ b/toxcore/BUILD.bazel @@ -30,6 +30,7 @@ cc_library( cc_test( name = "crypto_core_test", + size = "small", srcs = ["crypto_core_test.cc"], deps = [ ":crypto_core", @@ -67,6 +68,7 @@ cc_library( cc_test( name = "mono_time_test", + size = "small", srcs = ["mono_time_test.cc"], deps = [ ":mono_time", @@ -99,6 +101,7 @@ cc_library( cc_test( name = "util_test", + size = "small", srcs = ["util_test.cc"], deps = [ ":network", @@ -115,6 +118,7 @@ cc_library( cc_test( name = "ping_array_test", + size = "small", srcs = ["ping_array_test.cc"], deps = [ ":ping_array", -- cgit v1.2.3