-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
34 lines (29 loc) · 1.06 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
language: rust
before_install:
- sudo add-apt-repository --yes "ppa:codegear/release"
- sudo apt-get-repository --yes "ppa:keithw/glfw3"
- sudo add-apt-repository --yes "ppa:kalakris/cmake"
- sudo apt-get update -qq
os:
- linux
- osx
install:
- sudo apt-get install libXxf86vm-dev libosmesa6-dev
- sudo apt-get -qq --yes install premake4
- sudo apt-get -qq --yes install glfw3
- sudo apt-get install cmake
script:
- cargo build --verbose
- cargo test --verbose
- cargo doc --verbose
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/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
env:
global:
secure: Vu3dOn4Dme5L0qeofxBdgSbKoCoR9SMWUe/1/lIRQZ2DebJW7kzVQ8oqWQExNUe+Ci74/13Zv1cMA0RhPc79oGasPxpqvdJ5q1Zo4hSrPAne4MU59NVmyDx1eXZGvbvsdprYX+VX9gqvKH6329OimkMc9qJTI7vkBs76ZbuTopE=