diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 75db8e3..4f38bdf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,35 +9,39 @@ variables: test-default: stage: test - image: msrd0/rust:alpine + image: msrd0/rust:alpine-sweep before_script: - cargo -V + - cargo sweep -s script: - cargo test --workspace --tests - cargo test --workspace --tests -- --ignored after_script: - - cargo clean + - cargo sweep -f cache: + key: cargo-default paths: - cargo/ - target/ test-all: stage: test - image: msrd0/rust:alpine-tarpaulin + image: msrd0/rust:alpine-tarpaulin-sweep before_script: - apk add --no-cache postgresql-dev - cargo -V + - cargo sweep -s script: - cargo test --workspace --all-features --doc - cargo test --workspace --tests -- --ignored - cargo tarpaulin --target-dir target/tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'derive/*' --exclude-files 'example/*' --ignore-panics --ignore-tests --out Html -v after_script: - - cargo clean + - cargo sweep -f artifacts: paths: - tarpaulin-report.html cache: + key: cargo-all paths: - cargo/ - target/ @@ -51,18 +55,20 @@ readme: doc: stage: build - image: msrd0/rust:alpine + image: msrd0/rust:alpine-sweep before_script: - cargo -V + - cargo sweep -s script: - cargo doc --all-features - echo '
The documentation is located here' >target/doc/index.html after_script: - - cargo clean + - cargo sweep -f artifacts: paths: - target/doc/ cache: + key: cargo-doc paths: - cargo/ - target/