Alex Crichton | 68fe98b | 2015-01-13 07:53:42 -0800 | [diff] [blame^] | 1 | language: rust |
| 2 | sudo: false |
| 3 | before_install: |
| 4 | - git submodule update --init --recursive |
| 5 | script: |
| 6 | - cargo build --verbose |
| 7 | - cargo test --verbose |
| 8 | - cargo doc --verbose |
| 9 | after_success: | |
| 10 | [ $TRAVIS_BRANCH = master ] && |
| 11 | [ $TRAVIS_PULL_REQUEST = false ] && |
| 12 | echo '<meta http-equiv=refresh content=0;url=libc/index.html>' > target/doc/index.html && |
| 13 | pip install ghp-import --user $USER && |
| 14 | $HOME/.local/bin/ghp-import -n target/doc && |
| 15 | git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages |
| 16 | |
| 17 | env: |
| 18 | global: |
| 19 | secure: MZGg+symX6/fcY7TsQ1LkJ28V/CUevNZgs3MiilgvnlgTjqn7BU7gbTvwhLdVZq04/EQ1hTeVzrFGpBfcCUVHYKmP2vooEFJJ+bDGEvyD8ChwCB4nV+NmxF5+NwCi3+Y+0pBgKbt2BasJ+MXkGJpRyFozis6loMWbXTzZzL9jjU= |
| 20 | notifications: |
| 21 | email: |
| 22 | on_success: never |