-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
71 lines (65 loc) · 1.53 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
60
61
62
63
64
65
66
67
68
69
70
71
language: rust
cache: cargo
dist: trusty
sudo: false
os:
- linux
- osx
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
# Run builds for all the supported trains
rust:
- nightly
- beta
- stable
- 1.13.0
# Load travis-cargo
before_script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
pip install git+https://github.com/FractalGlobal/travis-cargo.git@fix-coveralls --user &&
export PATH=$HOME/.local/bin:$PATH
fi
# The main build
script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
travis-cargo build &&
travis-cargo test &&
travis-cargo build -- --features "no-sse" &&
travis-cargo test -- --features "no-sse" &&
travis-cargo build -- --features "no-avx2" &&
travis-cargo test -- --features "no-avx2" &&
travis-cargo bench;
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cargo build &&
cargo test &&
cargo build --features "no-sse" &&
cargo test --features "no-sse" &&
cargo build --features "no-avx2" &&
cargo test --features "no-avx2" &&
cargo bench;
fi
# Send coverage reports and upload docs
after_success:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
travis-cargo --only stable coveralls --no-sudo --verify;
fi
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
notifications:
email:
recipients:
- matt@fractal.global
- iban@fractal.global
on_success: change
on_failure: always