fixed/.gitlab-ci.yml

85 lines
4.7 KiB
YAML
Raw Normal View History

# Copyright © 20182019 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
- rustup --version
2019-11-24 09:47:06 -08:00
- rustup install beta-$TARGET 1.39.0-$TARGET
- rustup component add --toolchain beta-$TARGET rustfmt clippy
- 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
- if [ -d $CARGO_HOME/registry/cache ]; then (cd $CARGO_HOME/registry; find cache -name \*.crate) fi
after_script:
- if [ -d $CARGO_HOME/registry/cache ]; then (cd $CARGO_HOME/registry; find cache -name \*.crate) fi
- 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:
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 serde std"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az f16 serde"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az f16 std"
2019-10-10 08:13:36 -07:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az f16"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az serde std"
2019-10-10 08:13:36 -07:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az serde"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az std"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az"
2019-10-10 08:13:36 -07:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings f16 serde std"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings f16 serde"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings f16 std"
2019-01-29 09:34:18 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings f16"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings serde std"
2019-10-10 08:13:36 -07:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings serde"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings std"
2019-01-26 04:49:19 -08:00
- cargo +beta-$TARGET check --all-targets --features fail-on-warnings
2019-10-10 08:13:36 -07:00
- cargo +beta-$TARGET test --features "fail-on-warnings az f16 serde"
- cargo +beta-$TARGET test --release --features "fail-on-warnings az f16 serde"
- cargo +beta-$TARGET fmt -- --check
2019-11-24 09:47:06 -08:00
- cargo +1.39.0-$TARGET test --lib --features "fail-on-warnings az f16 serde"
- cargo +1.39.0-$TARGET test --release --lib --features "fail-on-warnings az f16 serde"
i686-gnulinux:
image: i386/rust:1
variables:
TARGET: i686
cache:
key: $CI_JOB_NAME
paths:
- cargo/
script:
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET clippy --all-targets --features "fail-on-warnings az f16 serde std"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az f16 serde"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az f16 std"
2019-10-10 08:13:36 -07:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az f16"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az serde std"
2019-10-10 08:13:36 -07:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az serde"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az std"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az"
2019-10-10 08:13:36 -07:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings az"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings f16 serde std"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings f16 serde"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings f16 std"
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings f16"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings serde std"
2019-10-10 08:13:36 -07:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings serde"
2019-12-23 08:39:41 -08:00
- cargo +beta-$TARGET check --all-targets --features "fail-on-warnings std"
2019-01-26 04:49:19 -08:00
- cargo +beta-$TARGET check --all-targets --features fail-on-warnings
2019-01-26 15:39:24 -08:00
- cargo +beta-$TARGET test --features "fail-on-warnings f16 serde"
2019-10-10 08:44:43 -07:00
- cargo +beta-$TARGET test --release --features "fail-on-warnings az f16 serde"
- cargo +beta-$TARGET fmt -- --check
2019-11-24 09:47:06 -08:00
- cargo +1.39.0-$TARGET test --lib --features "fail-on-warnings az f16 serde"
- cargo +1.39.0-$TARGET test --release --lib --features "fail-on-warnings az f16 serde"