secp256k1-zkp/.cirrus.yml

89 lines
2.1 KiB
YAML
Raw Normal View History

2020-12-22 16:42:08 +01:00
env:
### cirrus config
CIRRUS_CLONE_DEPTH: 1
### compiler options
HOST:
WRAPPER_CMD:
# Specific warnings can be disabled with -Wno-error=foo.
# -pedantic-errors is not equivalent to -Werror=pedantic and thus not implied by -Werror according to the GCC manual.
WERROR_CFLAGS: -Werror -pedantic-errors
MAKEFLAGS: -j4
BUILD: check
### secp256k1 config
2021-12-15 14:10:46 +01:00
ECMULTWINDOW: auto
2020-12-22 16:42:08 +01:00
ECMULTGENPRECISION: auto
ASM: no
WIDEMUL: auto
2020-12-22 16:42:08 +01:00
WITH_VALGRIND: yes
EXTRAFLAGS:
### secp256k1 modules
EXPERIMENTAL: no
2020-12-22 16:42:08 +01:00
ECDH: no
RECOVERY: no
SCHNORRSIG: no
2022-11-04 16:21:25 -04:00
ELLSWIFT: no
### test options
SECP256K1_TEST_ITERS:
BENCH: yes
SECP256K1_BENCH_ITERS: 2
2022-12-20 12:28:48 -05:00
CTIMETESTS: yes
# Compile and run the tests
EXAMPLES: yes
2020-12-22 16:42:08 +01:00
2022-11-15 13:30:12 -05:00
# https://cirrus-ci.org/pricing/#compute-credits
credits_snippet: &CREDITS
2022-12-12 08:35:36 -05:00
# Don't use any credits for now.
use_compute_credits: false
2022-11-15 13:30:12 -05:00
2020-12-22 16:42:08 +01:00
cat_logs_snippet: &CAT_LOGS
always:
cat_tests_log_script:
2020-12-22 16:42:08 +01:00
- cat tests.log || true
cat_noverify_tests_log_script:
- cat noverify_tests.log || true
cat_exhaustive_tests_log_script:
2020-12-22 16:42:08 +01:00
- cat exhaustive_tests.log || true
cat_ctime_tests_log_script:
- cat ctime_tests.log || true
cat_bench_log_script:
2020-12-22 16:42:08 +01:00
- cat bench.log || true
cat_config_log_script:
2020-12-22 16:42:08 +01:00
- cat config.log || true
cat_test_env_script:
2020-12-22 16:42:08 +01:00
- cat test_env.log || true
cat_ci_env_script:
2020-12-22 16:42:08 +01:00
- env
linux_container_snippet: &LINUX_CONTAINER
2020-12-22 16:42:08 +01:00
container:
dockerfile: ci/linux-debian.Dockerfile
2020-12-22 16:42:08 +01:00
# Reduce number of CPUs to be able to do more builds in parallel.
cpu: 1
# Gives us more CPUs for free if they're available.
greedy: true
2020-12-22 16:42:08 +01:00
# More than enough for our scripts.
memory: 2G
2021-07-05 10:33:36 +02:00
task:
name: "C++ -fpermissive (entire project)"
<< : *LINUX_CONTAINER
2021-07-05 10:33:36 +02:00
env:
CC: g++
CFLAGS: -fpermissive -g
CPPFLAGS: -DSECP256K1_CPLUSPLUS_TEST_OVERRIDE
2021-07-05 10:33:36 +02:00
WERROR_CFLAGS:
ECDH: yes
RECOVERY: yes
SCHNORRSIG: yes
2022-11-04 16:21:25 -04:00
ELLSWIFT: yes
2021-07-05 10:33:36 +02:00
test_script:
- ./ci/ci.sh
2021-07-05 10:33:36 +02:00
<< : *CAT_LOGS
2022-02-03 12:58:55 +01:00
task:
name: "C++ (public headers)"
<< : *LINUX_CONTAINER
test_script:
- g++ -Werror include/*.h
- clang -Werror -x c++-header include/*.h