From 38bd84257f1e47ecb4c1e1aac1ceaceed1b6e561 Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Fri, 4 Nov 2016 14:29:16 +0700 Subject: [PATCH] Update gitlab-ci change tags `rust-test` - `rust-stable` etc add rust stable, beta, nightly test's --- .gitlab-ci.yml | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 19cf6cbe1..dd79179c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -373,7 +373,7 @@ test-windows: tags: - rust-windows allow_failure: true -test-linux: +test-rust-stable: stage: test image: ethcore/rust:stable before_script: @@ -386,7 +386,38 @@ test-linux: - echo $JS_FILES_MODIFIED - if [ -z $JS_FILES_MODIFIED ]; then ./js/scripts/lint.sh&&./js/scripts/test.sh&&./js/scripts/build.sh&&./js/scripts/release.sh; else ./test.sh $CARGOFLAGS --no-release; fi tags: - - rust-test + - rust + - rust-stable + test-rust-beta: + stage: test + image: ethcore/rust:beta + before_script: + - git submodule update --init --recursive + - export JS_FILES_MODIFIED=$(git --no-pager diff --name-only $CI_BUILD_REF_NAME $(git merge-base $CI_BUILD_REF_NAME master) | grep \.js | wc -l) + - echo $JS_FILES_MODIFIED + - if [ -z $JS_FILES_MODIFIED ]; then ./js/scripts/install-deps.sh; fi + script: + - export RUST_BACKTRACE=1 + - echo $JS_FILES_MODIFIED + - if [ -z $JS_FILES_MODIFIED ]; then ./js/scripts/lint.sh&&./js/scripts/test.sh&&./js/scripts/build.sh&&./js/scripts/release.sh; else ./test.sh $CARGOFLAGS --no-release; fi + tags: + - rust + - rust-beta +test-rust-nightly: + stage: test + image: ethcore/rust:nightly + before_script: + - git submodule update --init --recursive + - export JS_FILES_MODIFIED=$(git --no-pager diff --name-only $CI_BUILD_REF_NAME $(git merge-base $CI_BUILD_REF_NAME master) | grep \.js | wc -l) + - echo $JS_FILES_MODIFIED + - if [ -z $JS_FILES_MODIFIED ]; then ./js/scripts/install-deps.sh; fi + script: + - export RUST_BACKTRACE=1 + - echo $JS_FILES_MODIFIED + - if [ -z $JS_FILES_MODIFIED ]; then ./js/scripts/lint.sh&&./js/scripts/test.sh&&./js/scripts/build.sh&&./js/scripts/release.sh; else ./test.sh $CARGOFLAGS --no-release; fi + tags: + - rust + - rust-nigthly js-release: stage: build image: ethcore/rust:stable @@ -416,5 +447,6 @@ js-tests: - ./js/scripts/test.sh - ./js/scripts/build.sh tags: - - rust-test + - rust + - rust-stable