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