sudo: false
dist: trusty
language: rust
cache:
- cargo
before_cache:
- rm -r $TRAVIS_BUILD_DIR/target/debug
jobs:
include:
- os: linux
rust: stable
- os: linux
rust: beta
- os: linux
rust: nightly
- stage: publish
os: linux
rust: stable
env:
- secure: "tk6bJEv46YfZwAKYzxn9+afzEb6nGym9lo/YJgjYIolv2qsNyMLlmC8ptRSRTHwOQPd3c54Y9XYP+61miMmWjppQSjJ4yvkUqnyiYzzdxzVM5dNIbXcqO6GbTgE2rIx9BOH0c/qrmw1KW2iz8TChxgQu/vv8pmDL1kmyawVy3EE="
install: true
script: true
deploy:
- provider: script
script: 'cargo publish --verbose --token=$CARGO_TOKEN'
on:
tags: true