1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 13:02:28 +00:00
deprecated-gotham-restful/.gitlab-ci.yml

56 lines
1 KiB
YAML
Raw Permalink Normal View History

2019-09-26 17:34:31 +02:00
stages:
2019-10-14 02:17:25 +02:00
- test
2019-10-20 17:42:58 +02:00
- publish
2019-09-26 17:34:31 +02:00
2019-10-14 01:15:12 +02:00
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
2019-10-14 02:17:25 +02:00
test-none:
stage: test
2019-10-14 01:15:12 +02:00
image: msrd0/rust:alpine
before_script:
- cargo -V
2019-09-26 17:34:31 +02:00
script:
2019-10-14 02:17:25 +02:00
- cargo test --all --no-default-features
2019-10-14 01:15:12 +02:00
cache:
paths:
- cargo/
- target/
2019-10-14 00:59:02 +02:00
2019-10-14 02:17:25 +02:00
test-all:
stage: test
image: msrd0/rust:alpine-tarpaulin
2019-10-14 01:15:12 +02:00
before_script:
2019-10-14 02:17:25 +02:00
- apk add --no-cache bash curl
2019-10-14 01:15:12 +02:00
- cargo -V
2019-10-14 00:59:02 +02:00
script:
2019-10-14 02:17:25 +02:00
- cargo tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'example/*' --out Xml
2019-10-14 16:07:19 +02:00
- wget -qO- https://codecov.io/bash | bash -s -- -y .codecov.yml -X gcov
2019-10-14 01:15:12 +02:00
cache:
paths:
- cargo/
- target/
2019-10-14 00:59:02 +02:00
readme:
2019-10-14 02:17:25 +02:00
stage: test
2019-10-14 00:59:02 +02:00
image: msrd0/rust:alpine-readme
script:
- cargo readme -r gotham_restful -t ../README.tpl >README.md.new
- diff README.md README.md.new
2019-10-20 17:42:33 +02:00
publish:
stage: publish
image: msrd0/rust:alpine
before_script:
- cargo -V
- cargo login $CRATES_IO_TOKEN
script:
- cd gotham_restful_derive
- cargo publish
- cd ../gotham_restful
- cargo publish
- cd ..
only:
- tags