-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
56 lines (56 loc) · 2.09 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: rust
cache: cargo
rust:
- stable
- nightly
env:
- TARGET=x86_64-unknown-linux-gnu TEST=1
- TARGET=x86_64-unknown-linux-musl
- TARGET=aarch64-unknown-linux-gnu RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc"
- TARGET=arm-unknown-linux-gnueabi RUSTFLAGS="-C linker=arm-linux-gnueabi-gcc"
matrix:
include:
- rust: 1.26.2
env: TARGET=x86_64-unknown-linux-gnu TEST=1
- os: osx
rust: stable
env: TARGET=x86_64-apple-darwin
- os: osx
rust: nightly
env: TARGET=x86_64-apple-darwin
- rust: nightly
env: TARGET=x86_64-unknown-linux-gnu COVERAGE=1
install:
- ./ci/build-lcov
- sudo apt-get install -qq libclang-common-3.8-dev llvm-3.8-dev
script:
- ./ci/run-cov
- bash <(curl -s https://codecov.io/bash) -f final.info
- rust: nightly
env: TARGET=x86_64-unknown-linux-gnu FMT=1 CLIPPY=1
before_install:
install:
before_script:
- rustup component add rustfmt-preview
- rustup component add clippy-preview
script:
- cargo fmt --all -- --check `find libmesabox src -iname "*.rs"`
- cargo clippy
allow_failures:
- rust: nightly
fast_finish: true
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
install:
- if [[ "$TARGET" == "x86_64-unknown-linux-musl" ]]; then sudo apt-get install -qq musl-tools; fi
- if [[ "$TARGET" == "aarch64-unknown-linux-gnu" ]]; then sudo apt-get install -qq gcc-aarch64-linux-gnu libc6-arm64-cross libc6-dev-arm64-cross; fi
- if [[ "$TARGET" == "arm-unknown-linux-gnueabi" ]]; then sudo apt-get install -qq gcc-arm-linux-gnueabi libc6-armel-cross libc6-dev-armel-cross; fi
before_script:
- rustup target add $TARGET || true
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cargo build --verbose --no-default-features --features gnu,lsb,networking,posix --target $TARGET; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cargo build --verbose --all --target $TARGET; fi
- if [[ "$TEST" == "1" ]]; then cargo test --verbose --all; fi
notifications:
email:
on_success: never