summaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-09-22 22:53:35 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-09-24 22:00:17 +0000
commitb694dbc2234928682efeb0ec6e79b97751036d4c (patch)
tree88b7a62a93345cd300d08318e030078801abbbbc /.cirrus.yml
parent8bb5be35259937fb764febec8c91f2084f04ebf1 (diff)
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.
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
new file mode 100644
index 00000000..350c2422
--- /dev/null
+++ b/.cirrus.yml
@@ -0,0 +1,24 @@
1---
2cirrus-ci_task:
3 container:
4 image: cirrusci/bazel:latest
5 cpu: 8
6 memory: 12G
7 configure_script:
8 - sudo apt update
9 - sudo apt install -y
10 autopoint
11 libasound2-dev
12 libcv-dev
13 libhighgui-dev
14 libopenal-dev
15 - echo "build --jobs=50 --curses=no --verbose_failures" | sudo tee /etc/bazel.bazelrc
16 - echo "build --config=linux" | sudo tee -a /etc/bazel.bazelrc
17 - echo "build --config=gcc" | sudo tee -a /etc/bazel.bazelrc
18 - echo "build --config=remote" | sudo tee -a /etc/bazel.bazelrc
19 - cd .. && mv cirrus-ci-build c-toxcore
20 - git clone --depth=1 https://github.com/TokTok/toktok-stack cirrus-ci-build
21 - mv c-toxcore cirrus-ci-build
22 - cd -
23 test_all_script:
24 - bazel test -c opt -k //c-toxcore/...