-
Notifications
You must be signed in to change notification settings - Fork 67
/
.travis.yml
59 lines (59 loc) · 1.63 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
57
58
59
language: rust
cache: cargo
rust:
- stable
- nightly
env:
- ARCH=x86_64_linux
- ARCH=arm_linux TARGET=arm-linux-gnueabi RUST_TARGET=arm-unknown-linux-gnueabi
- ARCH=aarch64_linux TARGET=aarch64-linux-gnu RUST_TARGET=aarch64-unknown-linux-gnu
- ARCH=arm_android TARGET=arm-linux-androideabi RUST_TARGET=armv7-linux-androideabi
NDK_API=19 NDK_ARCH=arm
- ARCH=aarch64_android TARGET=aarch64-linux-android RUST_TARGET=aarch64-linux-android
NDK_API=21 NDK_ARCH=arm64
- ARCH=x86_64_android TARGET=x86_64-linux-android RUST_TARGET=x86_64-linux-android
NDK_API=21 NDK_ARCH=x86_64
- ARCH=x86_64_windows_mingw TARGET=x86_64-windows-gnu RUST_TARGET=x86_64-pc-windows-gnu
matrix:
include:
- os: osx
rust: stable
env: ARCH=x86_64_macos
- name: cargo test
rust: stable
before_install:
install:
before_script:
script:
- RUST_BACKTRACE=1 cargo test
- name: bogo test
rust: stable
before_install:
install:
before_script:
before_deploy:
script:
- cd bogo && ./runme
- name: cargo-fmt and cargo-clippy
rust: stable
before_install:
install:
before_deploy:
before_script:
- rustup component add rustfmt-preview
- rustup component add clippy-preview
script:
- cargo fmt --all -- --check `find 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:
- "./ci/travis/toolchain_setup.sh"
- if [[ "$TARGET" = *"android"* ]]; then export PATH="$PATH:$PWD/cross/bin"; fi
script: "./ci/travis/build.sh"
notifications:
email:
on_success: never