openethereum/.gitlab-ci.yml

26 lines
821 B
YAML
Raw Normal View History

stages:
- build
2016-11-04 06:45:26 +01:00
- test
variables:
GIT_DEPTH: "3"
SIMPLECOV: "true"
RUST_BACKTRACE: "1"
2016-10-31 09:47:47 +01:00
RUSTFLAGS: ""
CARGOFLAGS: ""
cache:
key: "$CI_BUILD_NAME/$CI_BUILD_REF_NAME"
untracked: true
2016-11-04 06:45:26 +01:00
test-linux:
2016-11-04 06:45:26 +01:00
stage: test
image: ethcore/rust:stable
before_script:
- git submodule update --init --recursive
script:
- export RUST_BACKTRACE=1
2016-11-04 06:49:21 +01:00
- export 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)
- export JS_FILES_MODIFIED=$(git diff master | grep ^diff | grep -v a/js/ | wc -l)
2016-11-04 06:45:26 +01:00
- 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
tags:
- rust-test