-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 976 Bytes
/
.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
sudo: false
language: rust
cache: cargo
os:
- linux
- osx
rust:
- nightly
- beta
- stable
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python; fi
before_script:
- pip install -v 'travis-cargo<0.2' --user
- if [[ -e ~/Library/Python/2.7/bin ]]; then export PATH=~/Library/Python/2.7/bin:$PATH; fi
- if [[ -e ~/.local/bin ]]; then export PATH=~/.local/bin:$PATH; fi
- echo PATH is $PATH
script:
- |
([[ $TRAVIS_OS_NAME == "osx" ]] && (
travis-cargo build -- --features signpost &&
travis-cargo test -- --features signpost &&
travis-cargo bench -- --features signpost
) || (
travis-cargo build &&
travis-cargo test &&
travis-cargo bench
)) &&
travis-cargo --only stable doc
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=nightly