• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1sudo: false
2language: rust
3# necessary for `travis-cargo coveralls --no-sudo`
4addons:
5  apt:
6    packages:
7      - libcurl4-openssl-dev
8      - libelf-dev
9      - libdw-dev
10      - binutils-dev # optional: only required for the --verify flag of coveralls
11# run builds for all the trains (and more)
12rust:
13  - nightly
14  - beta
15  # check that it compiles on the latest stable compiler
16  - stable
17  # and the first stable one (this should be bumped as the minimum Rust version
18  # required changes)
19  - 1.24.0
20os:
21  - linux
22cache: cargo
23before_script:
24  # load travis-cargo
25  - pip install 'travis-cargo<0.2' --user
26  - export PATH=$HOME/.local/bin/:$PATH
27# the main build
28script:
29  - travis-cargo build
30  - travis-cargo test
31  - travis-cargo bench
32  - travis-cargo --only stable doc
33after_success:
34  # upload the documentation from the build with stable (automatically only
35  # actually runs from the master branch, not individual PRs)
36  - travis-cargo --only stable doc-upload
37  # measure code coverage and upload to coveralls.io (the verify argument
38  # mitigates kcov crashes due to malformed debuginfo, at the cost of some
39  # speed. <https://github.com/huonw/travis-cargo/issues/12>)
40  - travis-cargo coveralls --no-sudo --verify
41env:
42  global:
43    - RUST_BACKTRACE=1
44    # override the default '--features unstable' used for the nightly branch
45    - TRAVIS_CARGO_NIGHTLY_FEATURE="nightly-testing"
46    # encrypted Github token for doc upload
47    - secure: kQKcc0WiucWrIGC+t7ASfoKGs9nGdll94egke0pFTBIsh8e4dPgUK6hGBGfJE32FJS6VB3lyoAqNQQDCLnYwxsq2IOL4T1F65K4bDS9IvR1HXduvXj+z5NHU5VAerD7Czc0q+9Na2qEZQPEW9u6+eX4xX5E0c4p0eUoGMNQaXYg5bzRJ68uC8d8WAj2KOXx8G7Seak5xBmvP5vOBWJjCMv7leVoWwfP9OI+MizzDhzeYL5ux49STsP67/jrL37Otdly6Cvv9NsamCyoZ3McQq436pViUl2XJ3/ctvc17JNm+FdIdjKaZL1fMje2xyvYK9weyKjRiMmkDETWvsCFqL/Y37Oe80kh+KFKYSxgl6Q5IaiO35hUjBRDVmi/zuZGD8cI3GVE/qFj2yN+/srBzORgpJgofPaMurI6udQoCNiNqvAh9PJ0KpKvkCGNTUUXDYcv9k4BLIpudY0HqTNM341MkOD98NC99TsA9eJwWyEre3rLqkVztTzkGa7VM1MT/6bgVi+BdPfO3AEy5xs1Y4ut2Qzl54rFK2AGRFDdJ4CvyQykBg/EDxpkI7w0VdqUyOrSWNQFqv4xTwXPd91r2OhUUm76gsN50gwZTxJvae/aIGRdd3GyNQ149HHzNB5HLpct5KsGlCcwQ7QcbKFQkpCLC0R3sgeKGUaRbqZjwN5M=
48branches:
49  only:
50    - master
51    - auto
52notifications:
53  email: false
54matrix:
55  allow_failures:
56    - rust: nightly
57  fast_finish: true
58