2014-11-05 00:37:40 +08:00
|
|
|
language: rust
|
2015-11-04 00:33:03 +08:00
|
|
|
sudo: false
|
2014-11-05 01:50:47 +08:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2015-05-04 09:42:48 +08:00
|
|
|
secure: "FyGzHF0AIYdBcuM/2qIoABotx3MbNAlaHDzxPbbeUlVg64bnuib9G9K/qWve0a1BWCgv+8e/SbXZb7gt3JlUNE27aE4RZG4FEdtEpLYQp87Dc9d9HX0FwpUeFK3binsrtYl4WEBnIjQ3ICnUVey0E6GHEdkM+t5bWyJO5c4dJ30="
|
2014-11-05 01:50:47 +08:00
|
|
|
|
2014-11-05 00:37:40 +08:00
|
|
|
script:
|
|
|
|
- cargo build
|
|
|
|
- cargo test
|
2015-12-11 05:22:01 +08:00
|
|
|
- cargo test --features backup
|
|
|
|
- cargo test --features load_extension
|
|
|
|
- cargo test --features trace
|
|
|
|
- cargo test --features "backup load_extension trace"
|
|
|
|
- cargo doc --no-deps --features "backup load_extension trace"
|
2014-11-05 01:50:47 +08:00
|
|
|
|
2015-05-04 09:42:48 +08:00
|
|
|
after_success: |
|
2015-05-04 09:50:50 +08:00
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2015-05-04 09:42:48 +08:00
|
|
|
echo '<meta http-equiv=refresh content=0;url=rusqlite/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
|