2019-01-25 18:59:16 -08:00
# Copyright © 2018– 2019 Trevor Spiteri
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
before_script :
- getconf LONG_BIT
2019-12-31 08:24:36 -08:00
- rustup self update
2019-01-25 18:59:16 -08:00
- rustup --version
- if [ -d cargo/registry/cache ]; then rm -rf $CARGO_HOME/registry/cache; mkdir -p $CARGO_HOME/registry; cp -R cargo/registry/cache $CARGO_HOME/registry/; echo Copied registry/cache; fi
2019-12-31 08:30:28 -08:00
- if [ -d $CARGO_HOME/registry/src ]; then rm -r $CARGO_HOME/registry/src; fi
2020-02-13 04:47:11 -08:00
- if [ -d $CARGO_HOME/registry/cache ]; then (cd $CARGO_HOME/registry; find cache -name \*.crate | sort) fi
2019-01-25 18:59:16 -08:00
after_script :
2020-02-13 04:47:11 -08:00
- if [ -d $CARGO_HOME/registry/cache ]; then (cd $CARGO_HOME/registry; for c in cache/*/*.crate; do s=src/${c#cache/}; if [ ! -e ${s%.crate} ]; then rm -v $c; fi; done; find cache -name \*.crate | sort) fi
2019-01-25 18:59:16 -08:00
- rm -rf cargo
- mkdir -p cargo/registry
- if [ -d $CARGO_HOME/registry/cache ]; then cp -R $CARGO_HOME/registry/cache cargo/registry/; echo Updated registry/cache; fi
x86_64-gnulinux :
image : amd64/rust:1
variables :
TARGET : x86_64
cache :
key : $CI_JOB_NAME
paths :
- cargo/
script :
2020-09-02 04:03:23 -07:00
- rustup toolchain install --profile minimal beta-$TARGET 1.44.0-$TARGET
2020-07-16 01:35:00 -07:00
- cargo +beta-$TARGET test --features "fail-on-warnings az f16 num-traits serde std"
- cargo +beta-$TARGET test --release --features "fail-on-warnings az f16 num-traits serde std"
2020-09-02 04:03:23 -07:00
- cargo +1.44.0-$TARGET test --lib --features "fail-on-warnings az f16 num-traits serde std"
- cargo +1.44.0-$TARGET test --release --lib --features "fail-on-warnings az f16 num-traits serde std"
2019-01-25 18:59:16 -08:00
i686-gnulinux :
image : i386/rust:1
variables :
TARGET : i686
cache :
key : $CI_JOB_NAME
paths :
- cargo/
script :
2020-09-02 04:03:23 -07:00
- rustup toolchain install --profile minimal beta-$TARGET 1.44.0-$TARGET
2020-07-16 01:35:00 -07:00
- cargo +beta-$TARGET test --features "fail-on-warnings az f16 num-traits serde std"
- cargo +beta-$TARGET test --release --features "fail-on-warnings az f16 num-traits serde std"
2020-09-02 04:03:23 -07:00
- cargo +1.44.0-$TARGET test --lib --features "fail-on-warnings az f16 num-traits serde std"
- cargo +1.44.0-$TARGET test --release --lib --features "fail-on-warnings az f16 num-traits serde std"
2020-07-16 01:35:00 -07:00
x86_64-gnulinux-tidy :
image : amd64/rust:1
variables :
TARGET : x86_64
cache :
key : $CI_JOB_NAME
paths :
- cargo/
script :
- rustup toolchain install --profile minimal beta-$TARGET
- rustup component add --toolchain beta-$TARGET rustfmt clippy
- cargo +beta-$TARGET fmt -- --check
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 num-traits serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 num-traits serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 num-traits std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 num-traits"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 serde std"
2020-07-16 01:35:00 -07:00
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az num-traits serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az num-traits serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az num-traits std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az num-traits"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 num-traits serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 num-traits serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 num-traits std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 num-traits"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings num-traits serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings num-traits serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings num-traits std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings num-traits"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings std"
- cargo +beta-$TARGET clippy --all-targets --features fail-on-warnings
i686-gnulinux-tidy :
image : i386/rust:1
variables :
TARGET : i686
cache :
key : $CI_JOB_NAME
paths :
- cargo/
script :
- rustup toolchain install --profile minimal beta-$TARGET
- rustup component add --toolchain beta-$TARGET rustfmt clippy
2019-01-25 18:59:16 -08:00
- cargo +beta-$TARGET fmt -- --check
2020-07-16 01:35:00 -07:00
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 num-traits serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 num-traits serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 num-traits std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 num-traits"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az num-traits serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az num-traits serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az num-traits std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az num-traits"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 num-traits serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 num-traits serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 num-traits std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 num-traits"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16 std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings f16"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings num-traits serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings num-traits serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings num-traits std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings num-traits"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings serde std"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings serde"
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings std"
- cargo +beta-$TARGET clippy --all-targets --features fail-on-warnings
2020-04-17 09:20:42 -07:00
x86_64-gnulinux-tarpaulin :
image : amd64/rust:1
variables :
2020-04-17 15:10:01 -07:00
TARGET : x86_64
2020-09-02 03:31:50 -07:00
REQ_COVERAGE : "87.45"
2020-04-17 09:20:42 -07:00
cache :
key : $CI_JOB_NAME
paths :
- cargo/
script :
2020-07-16 01:35:00 -07:00
- rustup toolchain install --profile minimal beta-$TARGET
2020-09-02 03:31:50 -07:00
- cargo +beta-$TARGET install --version 0.14.3 --locked cargo-tarpaulin
2020-07-16 01:35:00 -07:00
- stdbuf -oL cargo +beta-$TARGET tarpaulin -v --ignore-tests --exclude-files build.rs --features "az f16 num-traits serde std" | tee tarpaulin.log
2020-04-17 09:20:42 -07:00
- echo "Check that coverage not less than $REQ_COVERAGE%"
- tail -1 tarpaulin.log | awk '{ if ($1 < '$REQ_COVERAGE') { exit 1 } }'
2020-04-17 16:08:00 -07:00
pages :
image : amd64/rust:1
variables :
TARGET : x86_64
cache :
key : $CI_JOB_NAME
paths :
- cargo/
script :
- rustup toolchain install --profile minimal nightly-$TARGET
2020-04-18 07:01:15 -07:00
- rm -rf public
- mkdir public
- cp doc/index.html public
2020-07-16 01:35:00 -07:00
- cargo +nightly-$TARGET doc --no-deps --features "az f16 num-traits serde std"
2020-04-18 07:01:15 -07:00
- mv target/doc public/dev
2020-04-17 16:08:00 -07:00
artifacts :
paths :
- public
only :
- master