forked from georust/gdal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
36 lines (30 loc) · 935 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
language: rust
sudo: enabled
dist: trusty
before_install:
- sudo add-apt-repository ppa:ubuntugis/ppa -y
- sudo apt-get update -q
- sudo apt-get install -y libgdal-dev libgdal20
addons:
apt:
packages:
- build-essential
rust:
- stable
- beta
- nightly
script:
- cargo test
- cargo test --features bindgen
- cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] &&
echo '<meta http-equiv=refresh content=0;url=gdal/index.html>' > target/doc/index.html &&
pip install ghp-import --user $USER &&
$HOME/.local/bin/ghp-import -n target/doc &&
git push -qf https://${GHP_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
env:
global:
secure: Bz7V/m3goAlwH3k4QUAxjbf7X1+JKDKttBC68bheVEjy3PanyWV5rfoUyYug65UOoc796/lJ2io4FbGOnOCePpzuQFAhXqrrjp+3V2Xz+XsPi/T5T5orUhhMZWtaEuUsEUgab5COj9hfc9KOVLDgR3F47/ZALjIVm8W+PzxMcKg=