Reorganise gitlab-ci.yml a bit

This commit is contained in:
Felix Krull 2018-10-20 12:24:10 +02:00 committed by Colin Walters
parent 98fbf253a7
commit 7c29936b84
1 changed files with 20 additions and 24 deletions

View File

@ -10,40 +10,49 @@ before_script:
stages: stages:
- build - build
- docs
- publish - publish
# libostree-sys
libostree-sys: libostree-sys:
stage: build stage: build
script: script:
- cargo build --verbose --manifest-path libostree-sys/Cargo.toml
- cargo test --verbose --manifest-path libostree-sys/Cargo.toml - cargo test --verbose --manifest-path libostree-sys/Cargo.toml
libostree:
stage: build
script:
- cargo build --verbose
- cargo test --verbose
libostree-sys_nightly: libostree-sys_nightly:
stage: build stage: build
image: rustlang/rust:nightly image: rustlang/rust:nightly
script: script:
- cargo build --verbose --manifest-path libostree-sys/Cargo.toml
- cargo test --verbose --manifest-path libostree-sys/Cargo.toml - cargo test --verbose --manifest-path libostree-sys/Cargo.toml
allow_failure: true allow_failure: true
publish_libostree-sys:
stage: publish
script:
- cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
when: manual
# libostree
libostree:
stage: build
script:
- cargo test --verbose
libostree_nightly: libostree_nightly:
stage: build stage: build
image: rustlang/rust:nightly image: rustlang/rust:nightly
script: script:
- cargo build --verbose
- cargo test --verbose - cargo test --verbose
allow_failure: true allow_failure: true
publish_libostree:
stage: publish
script:
- cargo publish --verbose --token $CRATES_IO_TOKEN
when: manual
# docs # docs
docs: docs:
stage: docs stage: build
script: script:
- make merge-lgpl-docs - make merge-lgpl-docs
- cargo doc --verbose --features dox - cargo doc --verbose --features dox
@ -51,7 +60,6 @@ docs:
paths: paths:
- target/doc - target/doc
# publish
pages: pages:
stage: publish stage: publish
script: script:
@ -61,15 +69,3 @@ pages:
- public - public
only: only:
- master - master
publish_libostree-sys:
stage: publish
script:
- cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
when: manual
publish_libostree:
stage: publish
script:
- cargo publish --verbose --token $CRATES_IO_TOKEN
when: manual