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
1 changed files with 22 additions and 30 deletions

View File

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