3 ## Comment out the compiler list for now to allow an explicit build
12 - "irc.oftc.net#tor-ci"
14 - "%{repository} %{branch} %{commit} - %{author}: %{commit_subject}"
15 - "Build #%{build_number} %{result}. Details: %{build_url}"
24 ## Uncomment the following line to also run the entire build matrix on OSX.
25 ## This will make your CI builds take roughly ten times longer to finish.
28 ## Use the Ubuntu Trusty images.
31 ## We don't need sudo. (The "apt:" stanza after this allows us to not need sudo;
32 ## otherwise, we would need it for getting dependencies.)
34 ## We override this in the explicit build matrix to work around a
35 ## Travis CI environment regression
36 ## https://github.com/travis-ci/travis-ci/issues/9033
39 ## (Linux only) Download our dependencies
43 ## Required dependencies
47 ## Optional dependencies
50 ## zstd doesn't exist in Ubuntu Trusty
53 ## The build matrix in the following two stanzas expands into four builds (per OS):
55 ## * with GCC, with Rust
56 ## * with GCC, without Rust
57 ## * with Clang, with Rust
58 ## * with Clang, without Rust
61 ## The Travis CI environment allows us two cores, so let's use both.
65 ## If one build in the matrix fails (e.g. if building withour Rust and Clang
66 ## fails, but building with Rust and GCC is still going), then cancel the
67 ## entire job early and call the whole thing a failure.
70 ## Create explicit matrix entries to work around a Travis CI
71 ## environment issue. Missing keys inherit from the first list
72 ## entry under that key outside the "include" clause.
75 ## The "sudo: required" forces non-containerized builds, working
76 ## around a Travis CI environment issue: clang LeakAnalyzer fails
77 ## because it requires ptrace and the containerized environment no
78 ## longer allows ptrace.
83 ## If we're on OSX, homebrew usually needs to updated first
84 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
86 - curl -Ssf -o rustup.sh https://sh.rustup.rs
89 ## If we're on OSX use brew to install required dependencies (for Linux, see the "apt:" section above)
90 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated openssl || brew upgrade openssl; }; fi
91 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated libevent || brew upgrade libevent; }; fi
92 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated pkg-config || brew upgrade pkg-config; }; fi
93 ## If we're on OSX also install the optional dependencies
94 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated xz || brew upgrade xz; }; fi
95 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated libscrypt || brew upgrade libscrypt; }; fi
96 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated zstd || brew upgrade zstd; }; fi
100 - ./configure $RUST_OPTIONS --disable-asciidoc --enable-fatal-warnings --disable-silent-rules --enable-fragile-hardening
101 ## We run `make check` because that's what https://jenkins.torproject.org does.
105 ## `make check` will leave a log file with more details of test failures.