dependencies:
post:
- git config --global user.email tobias.schottdorf@gmail.com
- git config --global user.name "Tobias Schottdorf"
- curl -sf -L https://static.rust-lang.org/rustup.sh | sh /dev/stdin --channel=nightly --yes
test:
override:
- cargo test
deployment:
docs:
branch: master
commands:
- cargo doc && git fetch origin gh-pages && git checkout gh-pages && (git mv doc doc-$(git describe --always master^) || rm -rf doc) && mv target/doc/ ./doc && git add -A ./doc* && git commit -m 'update docs' && git push origin gh-pages