ci: use libostree from unstable

This commit is contained in:
Felix Krull 2019-08-28 21:31:57 +02:00 committed by Colin Walters
parent dee0490829
commit 7f61aeb779
1 changed files with 16 additions and 18 deletions

View File

@ -8,9 +8,15 @@ variables:
RUSTC_WRAPPER: sccache RUSTC_WRAPPER: sccache
before_script: before_script:
# TODO: use libostree from unstable - echo deb https://deb.debian.org/debian unstable main > /etc/apt/sources.list.d/unstable.list
- |
cat > /etc/apt/preferences.d/pin <<EOF
Package: *
Pin: release a=unstable
Pin-Priority: -999
EOF
- apt-get update - apt-get update
- apt-get install -y libostree-dev - apt-get install -y -t unstable libostree-dev
- wget -O - ${SCCACHE_URL} | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache' - wget -O - ${SCCACHE_URL} | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
cache: cache:
@ -33,26 +39,18 @@ check:
- git diff -R --exit-code - git diff -R --exit-code
# build # build
.build-step: &build-step all_features:
stage: build stage: build
script: script:
- rustup component add clippy - rustup component add clippy
- cargo clippy --all ${FEATURES} -- -D warnings - cargo clippy --all --all-features -- -D warnings
- cargo test --verbose --manifest-path sys/Cargo.toml ${SYS_FEATURES} - cargo test --verbose --manifest-path sys/Cargo.toml --all-features
- cargo test --verbose ${FEATURES} - cargo test --verbose --all-features
ostree: default-features:
<<: *build-step stage: build
variables: script:
# TODO: update - cargo test --verbose
SYS_FEATURES: --features v2018_9
FEATURES: --features v2018_9,futures
ostree_default-features:
<<: *build-step
variables:
SYS_FEATURES: ""
FEATURES: ""
# docs # docs
docs: docs: