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.
58 - RUST_OPTIONS="--enable-rust --enable-cargo-online-mode"
62 ## If one build in the matrix fails (e.g. if building withour Rust and Clang
63 ## fails, but building with Rust and GCC is still going), then cancel the
64 ## entire job early and call the whole thing a failure.
68 ## If we're on OSX, homebrew usually needs to updated first
69 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
71 - if [[ "$RUST_OPTIONS" != "" ]]; then curl -Ssf -o rustup.sh https://sh.rustup.rs; fi
74 ## If we're on OSX use brew to install required dependencies (for Linux, see the "apt:" section above)
75 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated openssl || brew upgrade openssl; }; fi
76 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated libevent || brew upgrade libevent; }; fi
77 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated pkg-config || brew upgrade pkg-config; }; fi
78 ## If we're on OSX also install the optional dependencies
79 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated xz || brew upgrade xz; }; fi
80 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated libscrypt || brew upgrade libscrypt; }; fi
81 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated zstd || brew upgrade zstd; }; fi
82 ## Install the nightly channels of rustc and cargo and setup our toolchain environment
83 - if [[ "$RUST_OPTIONS" != "" ]]; then sh rustup.sh -y --default-toolchain nightly; fi
84 - if [[ "$RUST_OPTIONS" != "" ]]; then source $HOME/.cargo/env; fi
85 ## Get some info about rustc and cargo
86 - if [[ "$RUST_OPTIONS" != "" ]]; then which rustc; fi
87 - if [[ "$RUST_OPTIONS" != "" ]]; then which cargo; fi
88 - if [[ "$RUST_OPTIONS" != "" ]]; then rustc --version; fi
89 - if [[ "$RUST_OPTIONS" != "" ]]; then cargo --version; fi
93 - ./configure $RUST_OPTIONS --disable-asciidoc --enable-fatal-warnings --disable-silent-rules --enable-fragile-hardening
94 ## We run `make check` because that's what https://jenkins.torproject.org does.
98 ## `make check` will leave a log file with more details of test failures.