Update gitlab-ci.yml
This commit is contained in:
parent
382aa27f44
commit
5924702595
|
|
@ -1,5 +1,8 @@
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
|
|
||||||
|
variables:
|
||||||
|
CARGO_TARGET_DIR: target
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- echo deb http://ftp.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/backports.list
|
- echo deb http://ftp.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/backports.list
|
||||||
- apt-get update
|
- apt-get update
|
||||||
|
|
@ -13,29 +16,29 @@ stages:
|
||||||
libostree-sys:
|
libostree-sys:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose --package libostree-sys
|
- cargo build --verbose --manifest-path libostree-sys/Cargo.toml
|
||||||
- cargo test --verbose --package libostree-sys
|
- cargo test --verbose --manifest-path libostree-sys/Cargo.toml
|
||||||
|
|
||||||
libostree:
|
libostree:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose --package libostree
|
- cargo build --verbose
|
||||||
- cargo test --verbose --package libostree
|
- 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 --package libostree-sys
|
- cargo build --verbose --manifest-path libostree-sys/Cargo.toml
|
||||||
- cargo test --verbose --package libostree-sys
|
- cargo test --verbose --manifest-path libostree-sys/Cargo.toml
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
libostree_nightly:
|
libostree_nightly:
|
||||||
stage: build
|
stage: build
|
||||||
image: rustlang/rust:nightly
|
image: rustlang/rust:nightly
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose --package libostree
|
- cargo build --verbose
|
||||||
- cargo test --verbose --package libostree
|
- cargo test --verbose
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
# docs
|
# docs
|
||||||
|
|
@ -43,7 +46,6 @@ docs:
|
||||||
stage: docs
|
stage: docs
|
||||||
script:
|
script:
|
||||||
- make merge-lgpl-docs
|
- make merge-lgpl-docs
|
||||||
- cd libostree
|
|
||||||
- cargo doc --verbose --features dox
|
- cargo doc --verbose --features dox
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -64,12 +66,12 @@ publish_libostree-sys:
|
||||||
stage: publish
|
stage: publish
|
||||||
script:
|
script:
|
||||||
- make pre-package
|
- make pre-package
|
||||||
- cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --allow-dirty --token $CRATES_IO_TOKEN
|
- cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
publish_libostree:
|
publish_libostree:
|
||||||
stage: publish
|
stage: publish
|
||||||
script:
|
script:
|
||||||
- make pre-package
|
- make pre-package
|
||||||
- cargo publish --verbose --manifest-path libostree/Cargo.toml --allow-dirty --token $CRATES_IO_TOKEN
|
- cargo publish --verbose --token $CRATES_IO_TOKEN
|
||||||
when: manual
|
when: manual
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue