|
26 | 26 | - BIGNUM=no ENDOMORPHISM=yes RECOVERY=yes EXPERIMENTAL=yes |
27 | 27 | - BIGNUM=no STATICPRECOMPUTATION=no |
28 | 28 | - BUILD=distcheck CTIMETEST= BENCH= |
29 | | - - EXTRAFLAGS=CPPFLAGS=-DDETERMINISTIC |
30 | | - - EXTRAFLAGS=CFLAGS=-O0 |
| 29 | + - CPPFLAGS=-DDETERMINISTIC |
| 30 | + - CFLAGS=-O0 CTIMETEST= |
31 | 31 | - ECMULTGENPRECISION=2 |
32 | 32 | - ECMULTGENPRECISION=8 |
33 | 33 | matrix: |
@@ -74,35 +74,16 @@ matrix: |
74 | 74 | - compiler: gcc |
75 | 75 | env: |
76 | 76 | - BIGNUM=no ENDOMORPHISM=yes ASM=x86_64 EXPERIMENTAL=yes ECDH=yes RECOVERY=yes |
77 | | - - VALGRIND=yes EXTRAFLAGS="--disable-openssl-tests CPPFLAGS=-DVALGRIND" BUILD= |
| 77 | + - VALGRIND=yes EXTRAFLAGS="--disable-openssl-tests" CPPFLAGS=-DVALGRIND BUILD= |
78 | 78 | - compiler: gcc |
79 | 79 | env: # The same as above but without endomorphism. |
80 | | - - BIGNUM=no ENDOMORPHISM=no ASM=x86_64 EXPERIMENTAL=yes ECDH=yes RECOVERY=yes |
81 | | - - VALGRIND=yes EXTRAFLAGS="--disable-openssl-tests CPPFLAGS=-DVALGRIND" BUILD= |
| 80 | + - BIGNUM=no ASM=x86_64 EXPERIMENTAL=yes ECDH=yes RECOVERY=yes |
| 81 | + - VALGRIND=yes EXTRAFLAGS="--disable-openssl-tests" CPPFLAGS=-DVALGRIND BUILD= |
82 | 82 |
|
83 | 83 | before_script: ./autogen.sh |
84 | 84 |
|
85 | | -script: |
86 | | - - if [ -n "$HOST" ]; then export USE_HOST="--host=$HOST"; fi |
87 | | - - if [ "x$HOST" = "xi686-linux-gnu" ]; then export CC="$CC -m32"; fi |
88 | | - - ./configure --enable-experimental=$EXPERIMENTAL --enable-endomorphism=$ENDOMORPHISM --with-field=$FIELD --with-bignum=$BIGNUM --with-asm=$ASM --with-scalar=$SCALAR --enable-ecmult-static-precomputation=$STATICPRECOMPUTATION --with-ecmult-gen-precision=$ECMULTGENPRECISION --enable-module-ecdh=$ECDH --enable-module-recovery=$RECOVERY $EXTRAFLAGS $USE_HOST |
89 | | - - if [ -n "$BUILD" ]; then make -j2 $BUILD; fi |
90 | | - - # 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) |
91 | | - - # 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) |
92 | | - - if [ -n "$VALGRIND" ]; then |
93 | | - make -j2 && |
94 | | - travis_wait 30 valgrind --error-exitcode=42 ./tests 16 && |
95 | | - travis_wait 30 valgrind --error-exitcode=42 ./exhaustive_tests; |
96 | | - fi |
97 | | - - if [ -n "$BENCH" ]; then |
98 | | - if [ -n "$VALGRIND" ]; then EXEC='libtool --mode=execute valgrind --error-exitcode=42'; else EXEC= ; fi && |
99 | | - $EXEC ./bench_ecmult &>> bench.log && $EXEC ./bench_internal &>> bench.log && $EXEC ./bench_sign &>> bench.log && $EXEC ./bench_verify &>> bench.log && |
100 | | - if [ "$RECOVERY" == "yes" ]; then $EXEC ./bench_recover &>> bench.log; fi && |
101 | | - if [ "$ECDH" == "yes" ]; then $EXEC ./bench_ecdh &>> bench.log; fi; |
102 | | - fi |
103 | | - - if [ -n "$CTIMETEST" ]; then |
104 | | - libtool --mode=execute valgrind ./valgrind_ctime_test &> valgrind_ctime_test.log; |
105 | | - fi |
| 85 | +# 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) |
| 86 | +script: travis_wait 30 ./contrib/travis.sh |
106 | 87 |
|
107 | 88 | after_script: |
108 | 89 | - cat ./tests.log |
|
0 commit comments