10 - "irc.oftc.net#tor-ci"
12 - "%{repository} %{branch} %{commit} - %{author}: %{commit_subject}"
13 - "Build #%{build_number} %{result}. Details: %{build_url}"
22 ## Uncomment the following line to also run the entire build matrix on OSX.
23 ## This will make your CI builds take roughly ten times longer to finish.
26 ## Use the Ubuntu Trusty images.
29 ## We don't need sudo. (The "apt:" stanza after this allows us to not need sudo;
30 ## otherwise, we would need it for getting dependencies.)
33 ## (Linux only) Download our dependencies
37 ## Required dependencies
41 ## Optional dependencies
44 ## zstd doesn't exist in Ubuntu Trusty
47 ## The build matrix in the following two stanzas expands into four builds (per OS):
49 ## * with GCC, with Rust
50 ## * with GCC, without Rust
51 ## * with Clang, with Rust
52 ## * with Clang, without Rust
55 ## The Travis CI environment allows us two cores, so let's use both.
59 ## If one build in the matrix fails (e.g. if building withour Rust and Clang
60 ## fails, but building with Rust and GCC is still going), then cancel the
61 ## entire job early and call the whole thing a failure.
65 ## If we're on OSX, homebrew usually needs to updated first
66 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
68 - curl -Ssf -o rustup.sh https://sh.rustup.rs
71 ## If we're on OSX use brew to install required dependencies (for Linux, see the "apt:" section above)
72 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated openssl || brew upgrade openssl; }; fi
73 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated libevent || brew upgrade libevent; }; fi
74 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated pkg-config || brew upgrade pkg-config; }; fi
75 ## If we're on OSX also install the optional dependencies
76 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated xz || brew upgrade xz; }; fi
77 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated libscrypt || brew upgrade libscrypt; }; fi
78 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated zstd || brew upgrade zstd; }; fi
82 - ./configure $RUST_OPTIONS --disable-asciidoc --enable-fatal-warnings --disable-silent-rules --enable-fragile-hardening
83 ## We run `make check` because that's what https://jenkins.torproject.org does.
87 ## `make check` will leave a log file with more details of test failures.