1language: rust 2sudo: false 3 4# run builds for all the trains (and more) 5rust: 6 - stable 7 - beta 8 - nightly 9 10# load travis-cargo 11before_script: 12 - | 13 pip install 'travis-cargo<0.2' --user && 14 export PATH=$HOME/.local/bin:$PATH 15 16branches: 17 only: 18 - master 19# the main build 20script: 21 - | 22 travis-cargo build && 23 travis-cargo test && 24 travis-cargo bench && 25 travis-cargo doc 26 27env: 28 global: 29 # override the default `--features unstable` used for the nightly branch (optional) 30 - TRAVIS_CARGO_NIGHTLY_FEATURE="" 31