mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix continuous integration builds.
This commit is contained in:
parent
7c0eb5c70b
commit
2c45d45133
|
@ -17,8 +17,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: &apt_install
|
- run: &apt_install
|
||||||
apt update &&
|
apt-get update &&
|
||||||
apt install -y --no-install-recommends
|
DEBIAN_FRONTEND=noninteractive
|
||||||
|
apt-get install -y --no-install-recommends
|
||||||
clang
|
clang
|
||||||
cmake
|
cmake
|
||||||
libconfig-dev
|
libconfig-dev
|
||||||
|
|
21
.cirrus.yml
21
.cirrus.yml
|
@ -1,16 +1,15 @@
|
||||||
---
|
---
|
||||||
cirrus-ci_task:
|
cirrus-ci_task:
|
||||||
container:
|
container:
|
||||||
image: l.gcr.io/google/bazel:2.2.0
|
image: toxchat/toktok-stack:0.0.7
|
||||||
cpu: 8
|
cpu: 2
|
||||||
memory: 12G
|
memory: 2G
|
||||||
configure_script:
|
configure_script:
|
||||||
- cd .. && mv cirrus-ci-build c-toxcore
|
- /src/workspace/tools/inject-repo c-toxcore
|
||||||
- git clone --depth=1 https://github.com/TokTok/toktok-stack cirrus-ci-build
|
|
||||||
- mv c-toxcore cirrus-ci-build
|
|
||||||
- cd cirrus-ci-build
|
|
||||||
- tools/setup-ci
|
|
||||||
- bazel version
|
|
||||||
test_all_script:
|
test_all_script:
|
||||||
- RUN_TEST="bazel test --copt=-DUSE_IPV6=0 -c opt -k //c-toxcore/..."
|
- bazel test -k
|
||||||
- $RUN_TEST || $RUN_TEST
|
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
|
||||||
|
--config=ci
|
||||||
|
--config=docker
|
||||||
|
--config=release
|
||||||
|
//c-toxcore/...
|
||||||
|
|
|
@ -31,7 +31,7 @@ travis_script() {
|
||||||
-e ENABLE_ARCH_x86_64=$x86_64 \
|
-e ENABLE_ARCH_x86_64=$x86_64 \
|
||||||
-e ENABLE_TEST=true \
|
-e ENABLE_TEST=true \
|
||||||
-e EXTRA_CMAKE_FLAGS="-DBOOTSTRAP_DAEMON=OFF -DMIN_LOGGER_LEVEL=DEBUG -DTEST_TIMEOUT_SECONDS=90 -DAUTOTEST=ON" \
|
-e EXTRA_CMAKE_FLAGS="-DBOOTSTRAP_DAEMON=OFF -DMIN_LOGGER_LEVEL=DEBUG -DTEST_TIMEOUT_SECONDS=90 -DAUTOTEST=ON" \
|
||||||
-e DCMAKE_C_FLAGS="$C_FLAGS" \
|
-e CMAKE_C_FLAGS="$C_FLAGS" \
|
||||||
-e CMAKE_CXX_FLAGS="$CXX_FLAGS" \
|
-e CMAKE_CXX_FLAGS="$CXX_FLAGS" \
|
||||||
-e CMAKE_EXE_LINKER_FLAGS="$LD_FLAGS" \
|
-e CMAKE_EXE_LINKER_FLAGS="$LD_FLAGS" \
|
||||||
-e CMAKE_SHARED_LINKER_FLAGS="$LD_FLAGS" \
|
-e CMAKE_SHARED_LINKER_FLAGS="$LD_FLAGS" \
|
||||||
|
|
4
codecov.yml
Normal file
4
codecov.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
coverage:
|
||||||
|
precision: 2
|
||||||
|
round: down
|
||||||
|
range: "80...100"
|
Loading…
Reference in New Issue
Block a user