stages:
- test
- build
image: parity/rust-builder:latest
variables:
GIT_STRATEGY: fetch
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
CARGO_INCREMENTAL: 0
CI_SERVER_NAME: "GitLab CI"
test-rust-stable:
stage: test
script:
- time cargo test --verbose --all --features bit-vec,generic-array,derive
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
test-rust-stable-no_derive:
stage: test
script:
- time cargo test --verbose --features bit-vec,generic-array
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
check-rust-stable-no_derive_no_std_full:
stage: test
script:
- time cargo check --verbose --no-default-features --features bit-vec,generic-array,full
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
check-rust-stable-no_derive_no_std:
stage: test
script:
- time cargo check --verbose --no-default-features --features bit-vec,generic-array
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
check-rust-stable-no_derive_full:
stage: test
script:
- time cargo check --verbose --features bit-vec,generic-array,full
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
bench-rust-nightly:
stage: test
script:
- time cargo +nightly bench --features bit-vec,generic-array,derive
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
build-linux-ubuntu-amd64:
stage: build
script:
- cargo build --verbose --release --features bit-vec,generic-array,derive
- sccache -s
only:
- master
- tags
- web
tags:
- linux-docker