[tor-commits] [tor/master] Try running some CI jobs with ALL_BUGS_ARE_FATAL

teor at torproject.org teor at torproject.org
Tue Mar 17 11:09:22 UTC 2020


commit 33f2de45e70aea9fab7974e17231f14f72774bcd
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date:   Fri Mar 6 18:14:41 2020 +0200

    Try running some CI jobs with ALL_BUGS_ARE_FATAL
    
    Build Tor with ALL_BUGS_ARE_FATAL macro and run:
    * make check
    * make test-stem
    * make test-network
    
    These jobs are allowed to fail at this point.
---
 .travis.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 16d2e432d..13d4d9d10 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -93,6 +93,10 @@ matrix:
     #  compiler: clang
     #  os: osx
 
+    - env: ALL_BUGS_ARE_FATAL="yes"
+    - env: ALL_BUGS_ARE_FATAL="yes" SKIP_MAKE_CHECK="yes" CHUTNEY="yes"
+    - env: ALL_BUGS_ARE_FATAL="yes" SKIP_MAKE_CHECK="yes" TEST_STEM="yes"
+
   ## Allow the build to report success (with non-required sub-builds
   ## continuing to run) if all required sub-builds have succeeded.
   fast_finish: true
@@ -114,6 +118,7 @@ matrix:
     ## chutney tests
     #- env: CHUTNEY_MAKE="test-network-ipv6" CHUTNEY="yes" CHUTNEY_ALLOW_FAILURES="2" SKIP_MAKE_CHECK="yes"
     #  os: osx
+    - env: ALL_BUGS_ARE_FATAL="yes"
 
 ## (Linux only) Use a recent Linux image (Ubuntu Bionic)
 dist: bionic
@@ -241,7 +246,8 @@ script:
   - ./autogen.sh
   - CONFIGURE_FLAGS="$ASCIIDOC_OPTIONS $COVERAGE_OPTIONS $HARDENING_OPTIONS $MODULES_OPTIONS $NSS_OPTIONS $OPENSSL_OPTIONS $RUST_OPTIONS --enable-fatal-warnings --disable-silent-rules"
   - echo "Configure flags are $CONFIGURE_FLAGS CC=\"$CC $C_DIALECT_OPTIONS\""
-  - ./configure $CONFIGURE_FLAGS CC="$CC $C_DIALECT_OPTIONS"
+  - if [[ "$ALL_BUGS_ARE_FATAL" == "" ]]; then ./configure $CONFIGURE_FLAGS CC="$CC $C_DIALECT_OPTIONS"; fi
+  - if [[ "$ALL_BUGS_ARE_FATAL" != "" ]]; then ./configure CFLAGS="-DALL_BUGS_ARE_FATAL" $CONFIGURE_FLAGS CC="$CC $C_DIALECT_OPTIONS"; fi
   ## We run `make check` because that's what https://jenkins.torproject.org does.
   - if [[ "$SKIP_MAKE_CHECK" == "" ]]; then make check; fi
   - if [[ "$DISTCHECK" != "" ]]; then make distcheck DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_FLAGS"; fi





More information about the tor-commits mailing list