ostree/rust-bindings/rust/.gitlab-ci.yml

67 lines
1.5 KiB
YAML
Raw Normal View History

image: rust:latest
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 libostree-dev
2018-10-16 19:20:58 +03:00
stages:
- build
2018-10-16 20:27:04 +03:00
- publish
2018-10-16 19:20:58 +03:00
2018-10-16 19:48:35 +03:00
libostree-sys:
2018-10-16 19:20:58 +03:00
stage: build
script:
- cargo build --verbose --package libostree-sys
- cargo test --verbose --package libostree-sys
2018-10-16 19:48:35 +03:00
libostree-sys_release:
stage: build
script:
- cargo build --verbose --release --package libostree-sys
- cargo test --verbose --release --package libostree-sys
libostree:
2018-10-16 19:20:58 +03:00
stage: build
script:
- cargo build --verbose --package libostree
- cargo test --verbose --package libostree
2018-10-16 19:48:35 +03:00
libostree_release:
stage: build
script:
- cargo build --verbose --release --package libostree
- cargo test --verbose --release --package libostree
libostree-sys_nightly:
2018-10-16 19:20:58 +03:00
stage: build
image: rustlang/rust:nightly
script:
- cargo build --verbose --package libostree-sys
- cargo test --verbose --package libostree-sys
allow_failure: true
2018-10-16 19:48:35 +03:00
libostree_nightly:
2018-10-16 19:20:58 +03:00
stage: build
image: rustlang/rust:nightly
script:
- cargo build --verbose --package libostree
- cargo test --verbose --package libostree
allow_failure: true
2018-10-16 20:27:04 +03:00
# publish
publish_libostree-sys:
stage: publish
script:
2018-10-16 20:34:13 +03:00
- cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
2018-10-16 20:27:04 +03:00
when: manual
#publish_libostree:
# stage: publish
# before_script:
# - cargo login $CRATES_IO_TOKEN
2018-10-16 20:13:23 +03:00
# script:
2018-10-16 20:27:04 +03:00
# - cargo publish --verbose --manifest-path libostree/Cargo.toml
# when: manual