Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/.travis.yml
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | include: | ||||
- compiler: gcc | - compiler: gcc | ||||
env: # The same as above but without endomorphism. | env: # The same as above but without endomorphism. | ||||
- VALGRIND=yes | - VALGRIND=yes | ||||
- BIGNUM=no ENDOMORPHISM=no ASM=x86_64 EXPERIMENTAL=yes ECDH=yes RECOVERY=yes OPENSSL_TESTS=no MULTISET=yes | - BIGNUM=no ENDOMORPHISM=no ASM=x86_64 EXPERIMENTAL=yes ECDH=yes RECOVERY=yes OPENSSL_TESTS=no MULTISET=yes | ||||
- AUTOTOOLS_EXTRA_FLAGS=CPPFLAGS=-DVALGRIND AUTOTOOLS_TARGET= | - AUTOTOOLS_EXTRA_FLAGS=CPPFLAGS=-DVALGRIND AUTOTOOLS_TARGET= | ||||
- CMAKE_EXTRA_FLAGS=-DCMAKE_C_FLAGS=-DVALGRIND CMAKE_TARGET="secp256k1-tests secp256k1-exhaustive_tests" | - CMAKE_EXTRA_FLAGS=-DCMAKE_C_FLAGS=-DVALGRIND CMAKE_TARGET="secp256k1-tests secp256k1-exhaustive_tests" | ||||
script: | script: | ||||
- ./travis/build_autotools.sh | - ./travis/build_autotools.sh | ||||
- ./travis/build_cmake.sh | - ./travis/build_cmake.sh | ||||
- # travis_wait extends the 10 minutes without output allowed (https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received) | - # travis_wait extends the 10 minutes without output allowed (https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received) | ||||
- # the `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (http://valgrind.org/docs/manual/manual-core.html) | - # the `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (http://valgrind.org/docs/manual/manual-core.html) | ||||
- if [ -n "$VALGRIND" ]; then | - if [ -n "$VALGRIND" ]; then | ||||
travis_wait 30 valgrind --error-exitcode=42 ./buildautotools/tests 16 && | travis_wait 30 valgrind --error-exitcode=42 ./buildautotools/tests 16 && | ||||
travis_wait 30 valgrind --error-exitcode=42 ./buildautotools/exhaustive_tests; | travis_wait 30 valgrind --error-exitcode=42 ./buildautotools/exhaustive_tests; | ||||
fi | fi | ||||
- if [ -n "$VALGRIND" ]; then | - if [ -n "$VALGRIND" ]; then | ||||
travis_wait 30 valgrind --error-exitcode=42 ./buildcmake/secp256k1-tests 16 && | travis_wait 30 valgrind --error-exitcode=42 ./buildcmake/secp256k1-tests 16 && | ||||
travis_wait 30 valgrind --error-exitcode=42 ./buildcmake/secp256k1-exhaustive_tests; | travis_wait 30 valgrind --error-exitcode=42 ./buildcmake/secp256k1-exhaustive_tests; | ||||
fi | fi |