Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/.travis.yml
language: c | language: c | ||||
os: linux | os: linux | ||||
dist: xenial | dist: xenial | ||||
addons: | addons: | ||||
apt: | apt: | ||||
packages: | packages: | ||||
- libgmp-dev | - libgmp-dev | ||||
- ninja-build | - ninja-build | ||||
- valgrind | |||||
install: | install: | ||||
- ./travis/install_cmake.sh | - ./travis/install_cmake.sh | ||||
cache: | cache: | ||||
directories: | directories: | ||||
- /opt/cmake | - /opt/cmake | ||||
compiler: | compiler: | ||||
- clang | - clang | ||||
- gcc | - gcc | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | jobs: | ||||
include: | include: | ||||
- compiler: clang | - compiler: clang | ||||
env: HOST=i686-linux-gnu ENDOMORPHISM=yes OPENSSL_TESTS=no | env: HOST=i686-linux-gnu ENDOMORPHISM=yes OPENSSL_TESTS=no | ||||
addons: | addons: | ||||
apt: | apt: | ||||
packages: | packages: | ||||
- gcc-multilib | - gcc-multilib | ||||
- libgmp-dev:i386 | - libgmp-dev:i386 | ||||
- ninja-build | |||||
install: ./travis/install_cmake.sh | install: ./travis/install_cmake.sh | ||||
- compiler: clang | - compiler: clang | ||||
env: HOST=i686-linux-gnu BIGNUM=no OPENSSL_TESTS=no | env: HOST=i686-linux-gnu BIGNUM=no OPENSSL_TESTS=no | ||||
addons: | addons: | ||||
apt: | apt: | ||||
packages: | packages: | ||||
- gcc-multilib | - gcc-multilib | ||||
- ninja-build | |||||
install: ./travis/install_cmake.sh | install: ./travis/install_cmake.sh | ||||
- compiler: gcc | - compiler: gcc | ||||
env: HOST=i686-linux-gnu ENDOMORPHISM=yes BIGNUM=no OPENSSL_TESTS=no | env: HOST=i686-linux-gnu ENDOMORPHISM=yes BIGNUM=no OPENSSL_TESTS=no | ||||
addons: | addons: | ||||
apt: | apt: | ||||
packages: | packages: | ||||
- gcc-multilib | - gcc-multilib | ||||
- ninja-build | |||||
install: ./travis/install_cmake.sh | install: ./travis/install_cmake.sh | ||||
- compiler: gcc | - compiler: gcc | ||||
env: HOST=i686-linux-gnu OPENSSL_TESTS=no | env: HOST=i686-linux-gnu OPENSSL_TESTS=no | ||||
addons: | addons: | ||||
apt: | apt: | ||||
packages: | packages: | ||||
- gcc-multilib | - gcc-multilib | ||||
- libgmp-dev:i386 | - libgmp-dev:i386 | ||||
- ninja-build | |||||
install: ./travis/install_cmake.sh | install: ./travis/install_cmake.sh | ||||
- compiler: gcc | - compiler: gcc | ||||
env: | env: | ||||
- VALGRIND=yes | - VALGRIND=yes | ||||
- BIGNUM=no ENDOMORPHISM=yes ASM=x86_64 EXPERIMENTAL=yes ECDH=yes RECOVERY=yes OPENSSL_TESTS=no MULTISET=yes | - BIGNUM=no ENDOMORPHISM=yes 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="tests exhaustive_tests" | - CMAKE_EXTRA_FLAGS=-DCMAKE_C_FLAGS=-DVALGRIND CMAKE_TARGET="tests exhaustive_tests" | ||||
addons: | |||||
apt: | |||||
packages: | |||||
- ninja-build | |||||
- valgrind | |||||
install: ./travis/install_cmake.sh | install: ./travis/install_cmake.sh | ||||
- 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="tests exhaustive_tests" | - CMAKE_EXTRA_FLAGS=-DCMAKE_C_FLAGS=-DVALGRIND CMAKE_TARGET="tests exhaustive_tests" | ||||
addons: | |||||
apt: | |||||
packages: | |||||
- ninja-build | |||||
- valgrind | |||||
install: ./travis/install_cmake.sh | install: ./travis/install_cmake.sh | ||||
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/tests 16 && | travis_wait 30 valgrind --error-exitcode=42 ./buildcmake/tests 16 && | ||||
travis_wait 30 valgrind --error-exitcode=42 ./buildcmake/exhaustive_tests; | travis_wait 30 valgrind --error-exitcode=42 ./buildcmake/exhaustive_tests; | ||||
fi | fi |