Skip to content
Snippets Groups Projects
Unverified Commit ca4168ea authored by Isis Lovecruft's avatar Isis Lovecruft
Browse files

[skip ci] Add comments to describe our Travis CI config.

parent 63928a0b
Branches
No related tags found
No related merge requests found
......@@ -23,9 +23,14 @@ os:
## This will make your CI builds take roughly ten times longer to finish.
# - osx
## Use the Ubuntu Trusty images.
dist: trusty
## We don't need sudo. (The "apt:" stanza after this allows us to not need sudo;
## otherwise, we would need it for getting dependencies.)
sudo: false
## (Linux only) Download our dependencies
addons:
apt:
packages:
......@@ -33,24 +38,41 @@ addons:
- libseccomp2
- zlib1g-dev
## The build matrix in the following two stanzas expands into four builds (per OS):
##
## * with GCC, with Rust
## * with GCC, without Rust
## * with Clang, with Rust
## * with Clang, without Rust
env:
global:
## The Travis CI environment allows us two cores, so let's use both.
- MAKEFLAGS="-j 2"
matrix:
- RUST_OPTIONS="--enable-rust --enable-cargo-online-mode"
- RUST_OPTIONS=""
matrix:
## If one build in the matrix fails (e.g. if building withour Rust and Clang
## fails, but building with Rust and GCC is still going), then cancel the
## entire job early and call the whole thing a failure.
fast_finish: true
before_install:
## If we're on OSX, homebrew usually needs to updated first
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
## Download rustup
- curl -Ssf -o rustup.sh https://sh.rustup.rs
install:
## If we're on OSX use brew to install dependencies (for Linux, see the "apt:" section above)
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated openssl || brew upgrade openssl; }; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated openssl || brew upgrade libevent; }; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated openssl || brew upgrade pkg-config; }; fi
- curl -Ssf -o rustup.sh https://sh.rustup.rs
## Install the nightly channels of rustc and cargo and setup our toolchain environment
- sh rustup.sh -y --default-toolchain nightly
- source $HOME/.cargo/env
## Get some info about rustc and cargo
- which rustc
- which cargo
- rustc --version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment