language: rust
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
cache: cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo bench &&
travis-cargo --only stable doc
deploy:
- provider: script
on:
branch: master
condition: -d ./target/doc script: |
travis-cargo --only stable publish -- --token $CARGO_TOKEN &&
export VERSION=`cargo pkgid | sed -E 's/.*#(.*:)?(.+)/\2/'` &&
echo "tag v$VERSION" &&
git tag v$VERSION &&
git push https://awestlake87:$GITHUB_TOKEN@github.com/awestlake87/sc2-rs v$VERSION
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN on:
branch: master
condition: -d ./target/doc local_dir: ./target/doc