Consolidate some pipeline stages

This commit is contained in:
Felix Krull 2019-05-31 11:06:21 +02:00 committed by Colin Walters
parent b5fba187ff
commit a7079e543f

View File

@ -21,42 +21,26 @@ cache:
- sccache/
stages:
- check
- build
- publish
# checks
# format and freshness checks
check:
stage: check
stage: build
script:
- rustup component add clippy rustfmt
- rustup component add rustfmt
- cargo fmt --all -- --check
- cargo clippy --all ${CURRENT_FEATURES} -- -D warnings
gir:
stage: check
script:
- rm -rf src/auto/
- make gir
- git diff -R --exit-code
# ostree-sys
ostree-sys:
stage: build
script:
- cargo test --verbose --manifest-path sys/Cargo.toml ${CURRENT_FEATURES}
publish_ostree-sys:
stage: publish
script:
- cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
cache: {}
when: manual
# ostree
# build
ostree:
stage: build
script:
- rustup component add clippy
- cargo clippy --all ${CURRENT_FEATURES} -- -D warnings
- cargo test --verbose --manifest-path sys/Cargo.toml ${CURRENT_FEATURES}
- cargo test --verbose ${CURRENT_FEATURES}
ostree_default_features:
@ -64,13 +48,6 @@ ostree_default_features:
script:
- cargo test --verbose
publish_ostree:
stage: publish
script:
- cargo publish --verbose --token $CRATES_IO_TOKEN
cache: {}
when: manual
# docs
docs:
stage: build
@ -103,3 +80,18 @@ pages:
- public
only:
- master
# publish
publish_ostree-sys:
stage: publish
script:
- cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
cache: {}
when: manual
publish_ostree:
stage: publish
script:
- cargo publish --verbose --token $CRATES_IO_TOKEN
cache: {}
when: manual