Try setup CI a bit more

master
Julius 2020-02-29 22:56:14 +01:00
parent ccd7cd60ca
commit 71bb49fcec
1 changed files with 25 additions and 3 deletions

View File

@ -3,12 +3,34 @@
# https://hub.docker.com/r/library/rust/tags/
image: "rust:latest"
stages:
- test
- build
# Use cargo to test the project
test:cargo:
# Use cargo to test the project
test:
stage: test
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo test --all --verbose
cache:
key: cargo_cache
paths:
- target/
build:
stage: build
only:
- master
- tags
script:
- cargo build --release
cache:
key: cargo_cache
paths:
- target/
artifacts:
expire_in: 30 days
paths:
- target/release/summer
- target/release/summer.*