mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
Consolidate some pipeline stages
This commit is contained in:
parent
b5fba187ff
commit
a7079e543f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user