From 6acef995617d0a96ab0cb0c0e49a40e0fc0602c6 Mon Sep 17 00:00:00 2001 From: gabriel klawitter Date: Tue, 2 Jul 2019 20:03:46 +0200 Subject: [PATCH] ci: add job to test staking in srml (#2995) * ci: add job to test staking in srml * restrict on code changes * test whole package Co-Authored-By: thiolliere * add --release --verbose flags --- substrate/.gitlab-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index 4ceb36fcff..44a979ada9 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -126,6 +126,32 @@ test-linux-stable: &test-linux - time cargo test --all --release --verbose --locked - sccache -s + +test-srml-staking: &test-srml-staking + stage: test + <<: *docker-env + variables: + # Enable debug assertions since we are running optimized builds for testing + # but still want to have debug assertions. + RUSTFLAGS: -Cdebug-assertions=y + RUST_BACKTRACE: 1 + except: + variables: + - $DEPLOY_TAG + only: + changes: + - .gitlab-ci.yml + - srml/staking/* + script: + - cd srml/staking/ + - time cargo test --release --verbose --no-default-features --features std + - sccache -s + + + + + + test-linux-stable-int: <<: *test-linux except: