Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
3207a8e5
Unverified
Commit
3207a8e5
authored
Dec 03, 2019
by
teor
Browse files
Merge branch 'maint-0.4.1' into maint-0.4.2
parents
eb817040
14089a29
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
3207a8e5
...
...
@@ -41,12 +41,16 @@ matrix:
## We run basic tests on macOS
-
compiler
:
clang
os
:
osx
## Turn off some newer features, turn on clang's -Wtypedef-redefinition
env
:
C_DIALECT_OPTIONS="-std=gnu99"
## We check NSS
##
NSS is a fast job, clang is slower on Linux, so we do NSS clang
-
env
:
NSS_OPTIONS="--enable-nss"
compiler
:
clang
##
Use -std=gnu99 to turn off some newer features, and maybe turn on some
## extra gcc warnings?
-
env
:
NSS_OPTIONS="--enable-nss" C_DIALECT_OPTIONS="-std=gnu99"
## We run chutney on Linux, because it's faster than chutney on macOS
## Chutney is a fast job, clang is slower on Linux, so we do Chutney clang
-
env
:
CHUTNEY="yes" CHUTNEY_ALLOW_FAILURES="2" SKIP_MAKE_CHECK="yes"
compiler
:
clang
## (Linux only) Use an older Linux image (Ubuntu Trusty)
## The Xenial and Bionic images cause permissions issues for chutney,
## this is a workaround, until we fix #32240.
...
...
@@ -211,8 +215,8 @@ script:
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export TOR_SKIP_TEST_REBIND=true; fi
-
./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"
-
./configure $CONFIGURE_FLAGS
-
echo "Configure flags are $CONFIGURE_FLAGS
CC=\"$CC $C_DIALECT_OPTIONS\"
"
-
./configure $CONFIGURE_FLAGS
CC="$CC $C_DIALECT_OPTIONS"
## 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
...
...
changes/ticket32500
0 → 100644
View file @
3207a8e5
o Testing:
- Require C99 standards-conforming code in Travis CI, but allow GNU gcc
extensions. Also activates clang's -Wtypedef-redefinition warnings.
Build some jobs with -std=gnu99, and some jobs without.
Closes ticket 32500.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment