70 lines
1.3 KiB
YAML
70 lines
1.3 KiB
YAML
image: rust:latest
|
|
|
|
variables:
|
|
CARGO_TARGET_DIR: target
|
|
|
|
before_script:
|
|
- echo deb http://ftp.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/backports.list
|
|
- apt-get update
|
|
- apt-get install -y -t stretch-backports cmake libostree-dev
|
|
|
|
stages:
|
|
- build
|
|
- publish
|
|
|
|
# ostree-sys
|
|
ostree-sys:
|
|
stage: build
|
|
script:
|
|
- cargo test --verbose --manifest-path sys/Cargo.toml --features "v2018_9" #--all-features
|
|
|
|
ostree-sys_nightly:
|
|
stage: build
|
|
image: rustlang/rust:nightly
|
|
script:
|
|
- cargo test --verbose --manifest-path sys/Cargo.toml --features "v2018_9" #--all-features
|
|
|
|
publish_ostree-sys:
|
|
stage: publish
|
|
script:
|
|
- cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
|
|
when: manual
|
|
|
|
# ostree
|
|
ostree:
|
|
stage: build
|
|
script:
|
|
- cargo test --verbose --features "v2018_9" #--all-features
|
|
|
|
ostree_nightly:
|
|
stage: build
|
|
image: rustlang/rust:nightly
|
|
script:
|
|
- cargo test --verbose --features "v2018_9" #--all-features
|
|
|
|
publish_ostree:
|
|
stage: publish
|
|
script:
|
|
- cargo publish --verbose --token $CRATES_IO_TOKEN
|
|
when: manual
|
|
|
|
# docs
|
|
docs:
|
|
stage: build
|
|
script:
|
|
- make merge-lgpl-docs
|
|
- cargo doc --verbose --features dox
|
|
artifacts:
|
|
paths:
|
|
- target/doc
|
|
|
|
pages:
|
|
stage: publish
|
|
script:
|
|
- cp -r target/doc public
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
only:
|
|
- master
|