2016-07-28 17:34:32 +02:00
stages :
2016-09-07 20:47:34 +02:00
- build
2016-11-04 06:45:26 +01:00
- test
2016-07-28 17:34:32 +02:00
variables :
GIT_DEPTH : "3"
2016-10-30 09:55:46 +01:00
SIMPLECOV : "true"
2016-07-28 17:34:32 +02:00
RUST_BACKTRACE : "1"
2016-10-31 09:47:47 +01:00
RUSTFLAGS : ""
2016-10-31 10:36:30 +01:00
CARGOFLAGS : ""
2016-07-28 17:34:32 +02:00
cache :
key : "$CI_BUILD_NAME/$CI_BUILD_REF_NAME"
untracked : true
2016-11-04 06:45:26 +01:00
2016-10-31 19:51:29 +01:00
test-linux :
2016-11-04 06:45:26 +01:00
stage : test
image : ethcore/rust:stable
2016-10-31 19:51:29 +01:00
before_script :
- git submodule update --init --recursive
script :
- export RUST_BACKTRACE=1
2016-11-04 06:45:26 +01:00
- RS_FILES_MODIFIED=$(git --no-pager diff --name-only $CI_BUILD_REF_NAME $(git merge-base $CI_BUILD_REF_NAME master) | grep \.rs | wc -l)
- JS_FILES_MODIFIED=$(git diff master | grep ^diff | grep -v a/js/ | wc -l)
- if [ -z $RS_FILES_MODIFIED ]; then ./test.sh $CARGOFLAGS --no-release; else ./js/scripts/install-deps.sh&./js/scripts/lint.sh&./js/scripts/test.sh&./js/scripts/build.sh&./js/scripts/release.sh; fi
2016-10-31 19:51:29 +01:00
tags :
- rust-test