forked from Aatch/ramp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (39 loc) · 2.04 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
sudo: required
install: |
mkdir -p ~/rust && \
echo -e "\033[33;1mDownloading Rust\033[0m" && \
curl -sL https://static.rust-lang.org/dist/rust-nightly-$TARGET.tar.gz | tar --strip-components=1 -C ~/rust -xzf -
before_script: |
sudo apt-get update && \
if [ $BITS -eq 32 ]; then \
sudo apt-get install libc6-dev:i386 libstdc++6:i386 zlib1g-dev:i386 libssl-dev:i386 pkg-config:i386 gcc-multilib libgmp-dev:i386; \
else \
sudo apt-get install libgmp-dev
fi && \
sudo ~/rust/install.sh
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
env:
matrix:
- TARGET=i686-unknown-linux-gnu
BITS=32
FEATURES=''
- TARGET=x86_64-unknown-linux-gnu
BITS=64
FEATURES=''
- TARGET=x86_64-unknown-linux-gnu
BITS=64
FEATURES='asm'
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=