Advertisement
Guest User

.travis.yml

a guest
Jan 21st, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.92 KB | None | 0 0
  1. language: rust
  2.  
  3. cache: cargo
  4.  
  5. rust:
  6.  - stable
  7.   - nightly
  8.   - beta
  9.  
  10. os:
  11.  - windows
  12.   - linux
  13.   - osx
  14.  
  15. matrix:
  16.   allow_failures:
  17.     - rust: nightly
  18.     - rust: beta
  19.   fast_finish: true
  20.  
  21. sudo: required
  22.  
  23. addons:
  24.   apt:
  25.     packages:
  26.      - cmake
  27.       - libcurl4-openssl-dev
  28.       - libelf-dev
  29.       - libdw-dev
  30.       - binutils-dev
  31.       - libiberty-dev
  32.  
  33. before_script: |
  34.  if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
  35.     export PATH=$HOME/.cargo/bin:$PATH
  36.     cargo install cargo-update || echo "cargo-update already installed"
  37.     cargo install cargo-travis || echo "cargo-travis already installed"
  38.     cargo install-update -a
  39.   fi
  40.  
  41. after_success: |
  42.  if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
  43.     cargo build --verbose &&
  44.     cargo coverage --verbose &&
  45.     bash <(curl -s https://codecov.io/bash) -s target/kcov
  46.   fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement