Update gitlab-ci

change tags `rust-test` - `rust-stable` etc
add rust stable, beta, nightly test's
This commit is contained in:
Denis S. Soldatov aka General-Beck 2016-11-04 14:29:16 +07:00 committed by GitHub
parent 8575dfdea6
commit 38bd84257f

View File

@ -373,7 +373,7 @@ test-windows:
tags: tags:
- rust-windows - rust-windows
allow_failure: true allow_failure: true
test-linux: test-rust-stable:
stage: test stage: test
image: ethcore/rust:stable image: ethcore/rust:stable
before_script: before_script:
@ -386,7 +386,38 @@ test-linux:
- echo $JS_FILES_MODIFIED - 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 - 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: 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: js-release:
stage: build stage: build
image: ethcore/rust:stable image: ethcore/rust:stable
@ -416,5 +447,6 @@ js-tests:
- ./js/scripts/test.sh - ./js/scripts/test.sh
- ./js/scripts/build.sh - ./js/scripts/build.sh
tags: tags:
- rust-test - rust
- rust-stable