Update gitlab-ci
fix lint remove rust-beta and rust-nightly test's add new job 'js-test' 'js-build'
This commit is contained in:
parent
38bd84257f
commit
27472dfe44
@ -1,5 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- js-test
|
||||||
|
- js-build
|
||||||
- test
|
- test
|
||||||
variables:
|
variables:
|
||||||
GIT_DEPTH: "3"
|
GIT_DEPTH: "3"
|
||||||
@ -8,7 +10,7 @@ variables:
|
|||||||
RUSTFLAGS: ""
|
RUSTFLAGS: ""
|
||||||
CARGOFLAGS: ""
|
CARGOFLAGS: ""
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_BUILD_NAME/$CI_BUILD_REF_NAME"
|
key: "$CI_BUILD_REF_NAME"
|
||||||
untracked: true
|
untracked: true
|
||||||
linux-stable:
|
linux-stable:
|
||||||
stage: build
|
stage: build
|
||||||
@ -347,7 +349,7 @@ windows:
|
|||||||
- nsis/InstallParity.exe
|
- nsis/InstallParity.exe
|
||||||
name: "x86_64-pc-windows-msvc_parity"
|
name: "x86_64-pc-windows-msvc_parity"
|
||||||
test-darwin:
|
test-darwin:
|
||||||
stage: build
|
stage: test
|
||||||
only:
|
only:
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
@ -360,7 +362,7 @@ test-darwin:
|
|||||||
tags:
|
tags:
|
||||||
- osx
|
- osx
|
||||||
test-windows:
|
test-windows:
|
||||||
stage: build
|
stage: test
|
||||||
only:
|
only:
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
@ -384,52 +386,7 @@ test-rust-stable:
|
|||||||
script:
|
script:
|
||||||
- export RUST_BACKTRACE=1
|
- export RUST_BACKTRACE=1
|
||||||
- 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; else ./test.sh $CARGOFLAGS --no-release; fi
|
||||||
tags:
|
|
||||||
- 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
|
|
||||||
only:
|
|
||||||
- jg*
|
|
||||||
- ng*
|
|
||||||
- ui*
|
|
||||||
before_script:
|
|
||||||
- ./js/scripts/install-deps.sh
|
|
||||||
script:
|
|
||||||
- ./js/scripts/build.sh
|
|
||||||
- ./js/scripts/release.sh
|
|
||||||
tags:
|
tags:
|
||||||
- rust
|
- rust
|
||||||
- rust-stable
|
- rust-stable
|
||||||
@ -447,6 +404,18 @@ js-tests:
|
|||||||
- ./js/scripts/test.sh
|
- ./js/scripts/test.sh
|
||||||
- ./js/scripts/build.sh
|
- ./js/scripts/build.sh
|
||||||
tags:
|
tags:
|
||||||
- rust
|
- javascript-test
|
||||||
- rust-stable
|
js-release:
|
||||||
|
stage: build
|
||||||
|
image: ethcore/rust:stable
|
||||||
|
only:
|
||||||
|
- jg*
|
||||||
|
- ng*
|
||||||
|
- ui*
|
||||||
|
before_script:
|
||||||
|
- ./js/scripts/install-deps.sh
|
||||||
|
script:
|
||||||
|
- ./js/scripts/build.sh
|
||||||
|
- ./js/scripts/release.sh
|
||||||
|
tags:
|
||||||
|
- javascript
|
||||||
|
Loading…
Reference in New Issue
Block a user