From 41c90cd8c6868d0f923b32e75c2441505b73eadb Mon Sep 17 00:00:00 2001 From: TriplEight <denis.pisarev@parity.io> Date: Sat, 25 May 2019 23:14:21 +0200 Subject: [PATCH] show rust version (#138) --- .gitlab-ci.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b2abb9ba..2e15d54d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,21 +9,23 @@ variables: GIT_SUBMODULE_STRATEGY: recursive CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}" SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache" - SCCACHE_CACHE_SIZE: 50G CI_SERVER_NAME: "GitLab CI" RUST_TOOLCHAIN: "stable" -before_script: - - sccache -s - - ./scripts/init.sh - - ./scripts/build.sh - +.compiler_info: &compiler_info + before_script: + - rustup show + - cargo --version + - sccache -s #### stage: test test-rust-stable: stage: test + <<: *compiler_info script: + - ./scripts/init.sh + - ./scripts/build.sh - time cargo test --all --release --locked - sccache -s only: @@ -41,7 +43,10 @@ test-rust-stable: build-linux: stage: build + <<: *compiler_info script: + - ./scripts/init.sh + - ./scripts/build.sh - time cargo build --release - sccache -s tags: -- GitLab