-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
91 lines (83 loc) · 2.77 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
sudo: false
cache: cargo
install: |
echo -e "\033[33;1mDownloading Rust\033[0m" && \
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-$TARGET && \
export PATH=$HOME/.cargo/bin:$PATH
before_script: |
pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
rustc --version
script:
- |
travis-cargo build -- --features "$FEATURES" &&
travis-cargo test -- --lib --features "$FEATURES" &&
# need optimisations or else a full quickcheck takes too long
travis-cargo test -- --release --features "$FEATURES full-quickcheck" &&
travis-cargo bench -- --features "$FEATURES" &&
travis-cargo doc -- --features "$FEATURES"
after_success:
- if [ -z "$FEATURES" -a "$BITS" = "32" ]; then travis-cargo doc-upload; fi
matrix:
include:
- env:
- TARGET=i686-unknown-linux-gnu
BITS=32
FEATURES=''
addons:
apt:
packages:
- libc6:i386
- libstdc++6:i386
- zlib1g-dev:i386
- libssl-dev:i386
- pkg-config:i386
- gcc-multilib
- libgmp-dev:i386
- env:
- TARGET=x86_64-unknown-linux-gnu
BITS=64
FEATURES=''
addons:
apt:
packages:
- libgmp-dev
- env:
- TARGET=i686-unknown-linux-gnu
BITS=32
FEATURES='fallbacks'
addons:
apt:
packages:
- libc6:i386
- libstdc++6:i386
- zlib1g-dev:i386
- libssl-dev:i386
- pkg-config:i386
- gcc-multilib
- libgmp-dev:i386
- env:
- TARGET=x86_64-unknown-linux-gnu
BITS=64
FEATURES='fallbacks'
addons:
apt:
packages:
- libgmp-dev
- env:
- TARGET=x86_64-unknown-linux-gnu
BITS=64
FEATURES='asm'
addons:
apt:
packages:
- libgmp-dev
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=unstable
- secure: dc4TpJx2YONax6C5967cUmTKH/54pwUtDQu/9+KdjxA75AE1KjibZcg1W5bJhfYaWMPCTT2cwTfvUZP8k2tC0erWQUJv9iWy6MsrDTx88WeHmUlHls4OF64pa0kfSN4+Np4+96WMfFH2nlVGFazXzNeP2Dzwhyh54jW+qEfpICT5PSZm4cuLbhIzMviNu1fwFzQHDlsGnrhhc/rP9riYHIVYF9rCMMAugufKoDYdp4wllowhvVt+2OZlY2i7G0cPr3OZq5DvdQ07JWpGGKBMqSK5dLGTirfBSgTOv28CaCDwKUkTz1JCU3205NjbAnvGFkiym4opjRJpyLBIeRjxGULkodbBsUdg6F5JZTsmyaBaxszzk/l4TFaZ6TaKb2hU1G4EYa1lsPe5NEwOHY2YgGf+eCy/0kA4QpumUktY7844Vn409wJvZ5lmoiWhm6ZZpbu27KnZEBZGdWjfYIUdB3rm07BZcS8CcjYREzO+7rRPNwk3wg6DFFxRCugKMADLBBtndBxqenO12FuFiOkD5kyoufqSioO0quU6kAe5BtU+7+n7+mkzvhq7BowKXadKozNFVyo1rmGnO54z9TLgrwybRmx7pRXKJiYuOxL8T7UUPQUvQE2AYSF9462SdgDmpH+Um7Mojc9jb/qlEqBzHxze4X8Gz+25AcWvbgTVsQU=
notifications:
email:
recipients:
- micro@fastmail.com
on_success: change
on_failure: change