forked from ggez/ggez
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (36 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
sudo: true
language: rust
rust:
- stable
- beta
- nightly
- 1.32.0
os:
- linux
- osx
# - windows
matrix:
allow_failures:
- rust: nightly
addons:
apt:
packages:
- libssl-dev
cache: cargo
script:
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then cargo test --verbose headless; fi
# - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then cargo test --verbose headless --no-default-features; fi
before_install:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo apt-get -qq update
&& sudo apt-get install -y libasound2-dev libudev-dev;
fi
after_success: |
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${TRAVIS_RUST_VERSION}" == stable ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
# Uncomment the following line for coveralls.io
# cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
# Uncomment the following two lines create and upload a report for codecov.io
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi