2018-09-23 06:53:35 +08:00
|
|
|
---
|
|
|
|
cirrus-ci_task:
|
|
|
|
container:
|
2020-03-01 00:01:08 +08:00
|
|
|
image: l.gcr.io/google/bazel:2.1.0
|
2018-09-23 06:53:35 +08:00
|
|
|
cpu: 8
|
|
|
|
memory: 12G
|
|
|
|
configure_script:
|
2020-03-01 00:01:08 +08:00
|
|
|
- echo "build --jobs=50 --curses=no --verbose_failures" | tee ~/.bazelrc
|
|
|
|
- echo "build --config=linux" | tee -a ~/.bazelrc
|
|
|
|
- echo "build --config=clang" | tee -a ~/.bazelrc
|
|
|
|
# - echo "build --config=remote" | tee -a ~/.bazelrc
|
2018-09-23 06:53:35 +08:00
|
|
|
- cd .. && mv cirrus-ci-build c-toxcore
|
2020-03-01 00:01:08 +08:00
|
|
|
- git clone --branch=upgrade-bazel --depth=1 https://github.com/iphydf/toktok-stack cirrus-ci-build
|
2018-09-23 06:53:35 +08:00
|
|
|
- mv c-toxcore cirrus-ci-build
|
|
|
|
- cd -
|
|
|
|
test_all_script:
|
2020-03-01 00:01:08 +08:00
|
|
|
- bazel test --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST --copt=-DUSE_IPV6=0 -c opt -k //c-toxcore/...
|