image: rust:latest
stages:
- test
- deploy
test cargo stable:
stage: test
script:
- rustc --version && cargo --version - cargo test --all --verbose
test cargo 1.20:
image: rust:1.20.0
stage: test
script:
- rustc --version && cargo --version
- cargo run --example compatible
test cargo 1.28:
image: rust:1.28.0
stage: test
script:
- rustc --version && cargo --version
- cargo run --example compatible
deploy:crates.io:
image: registry.gitlab.com/torkleyy/cargo-publish-all:latest
stage: deploy
script:
- cargo-publish-all --token $CRATES_IO_TOKEN --yes
only:
refs:
- master