ci: switch to Fedora Rawhide

This commit is contained in:
Felix Krull 2019-10-31 12:50:36 +01:00 committed by Colin Walters
parent bdf749b0e6
commit 4bdb7b8760
1 changed files with 5 additions and 14 deletions

View File

@ -1,4 +1,4 @@
image: rust:1-buster image: fedora:rawhide
variables: variables:
SCCACHE_URL: https://github.com/mozilla/sccache/releases/download/0.2.12/sccache-0.2.12-x86_64-unknown-linux-musl.tar.gz SCCACHE_URL: https://github.com/mozilla/sccache/releases/download/0.2.12/sccache-0.2.12-x86_64-unknown-linux-musl.tar.gz
@ -9,16 +9,8 @@ variables:
OSTREE_VERSION: v2019_3 OSTREE_VERSION: v2019_3
before_script: before_script:
- echo deb https://deb.debian.org/debian unstable main > /etc/apt/sources.list.d/unstable.list - dnf install -y cargo rust clippy rustfmt git ostree-devel
- | - curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
cat > /etc/apt/preferences.d/pin <<EOF
Package: *
Pin: release a=unstable
Pin-Priority: -999
EOF
- apt-get update
- apt-get install -y -t unstable libostree-dev
- wget -O - ${SCCACHE_URL} | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
cache: cache:
paths: paths:
@ -33,7 +25,6 @@ stages:
check: check:
stage: build stage: build
script: script:
- rustup component add rustfmt
- cargo fmt --all -- --check - cargo fmt --all -- --check
- rm -rf src/auto/ - rm -rf src/auto/
- make gir - make gir
@ -43,7 +34,6 @@ check:
build_all-features: build_all-features:
stage: build stage: build
script: script:
- rustup component add clippy
- cargo clippy --all --features ${OSTREE_VERSION},futures -- -D warnings - cargo clippy --all --features ${OSTREE_VERSION},futures -- -D warnings
- cargo test --verbose --manifest-path sys/Cargo.toml --features ${OSTREE_VERSION} - cargo test --verbose --manifest-path sys/Cargo.toml --features ${OSTREE_VERSION}
- cargo test --verbose --features ${OSTREE_VERSION},futures - cargo test --verbose --features ${OSTREE_VERSION},futures
@ -56,7 +46,7 @@ build_default-features:
# docs # docs
docs: docs:
stage: build stage: build
image: rustlang/rust:nightly-buster image: rustlang/rust:nightly
variables: variables:
RUSTDOC_OPTS: >- RUSTDOC_OPTS: >-
-Z unstable-options -Z unstable-options
@ -65,6 +55,7 @@ docs:
--extern-html-root-url gio_sys=https://gtk-rs.org/docs --extern-html-root-url gio_sys=https://gtk-rs.org/docs
--extern-html-root-url glib=https://gtk-rs.org/docs --extern-html-root-url glib=https://gtk-rs.org/docs
--extern-html-root-url gio=https://gtk-rs.org/docs --extern-html-root-url gio=https://gtk-rs.org/docs
before_script: []
script: script:
- make merge-lgpl-docs - make merge-lgpl-docs
- cargo rustdoc --verbose --package ostree-sys --features dox -- ${RUSTDOC_OPTS} - cargo rustdoc --verbose --package ostree-sys --features dox -- ${RUSTDOC_OPTS}