-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
executable file
·32 lines (32 loc) · 1.07 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
language: rust
rust: beta
sudo: required
os:
- linux
- osx
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=/llvm-rs/llvm/index.html>" > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
before_install:
- sudo sh -c "add-apt-repository -y ppa:ubuntu-toolchain-r/test"
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.7 main' >> /etc/apt/sources.list"
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
install:
- sudo apt-get update -qq
- sudo apt-get install -qq llvm-3.7 libllvm3.7 libllvm3.7-dbg cmake libedit-dev
- sudo ln -s /usr/bin/llvm-config-3.7 /usr/local/bin/llvm-config
- llvm-config-3.7 --version
script:
- cargo build --verbose
- cargo test --verbose
- cargo bench --verbose
- cargo run --example tan
- cargo run --example fib
notifications:
email:
- tophattedcoder@gmail.com