File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ language: rust
22# do not run any default scripts coming from `language: rust` (i.e. travis-ci)
33script :
44install :
5- - which cargo-make || cargo install cargo-make
65# Also don't cache the cargo registry
76before_cache :
87 - rm -rf /home/travis/.cargo/registry
2019 global :
2120 - CARGO_MAKE_RUN_CHECK_FORMAT="true"
2221 - CARGO_MAKE_RUN_CLIPPY="true"
23- services :
24- - redis
2522
2623stages :
27- - test
28- - deploy
24+ - name : run all tests
25+ - name : release validator
26+ if : (tag IS present) AND (tag =~ ^validator-v)
2927
3028jobs :
3129 fast_finish : true
3230 include :
33- - stage : test
31+ - stage : run all tests
32+ # @TODO: Maybe run a separate weekly job and use the cached cargo-make from there
33+ install :
34+ - which cargo-make || cargo install cargo-make
3435 script :
3536 - cargo make ci-flow
36- - stage : deploy
37- if : (tag IS present) AND (tag =~ ^validator-v)
37+
38+ - stage : release validator
39+ # Disable the default Rust `install` & `script` from Travis
40+ install :
41+ script :
3842 before_deploy :
3943 - cargo build -p validator_worker --release --all-features --target x86_64-unknown-linux-gnu
4044 - cp target/x86_64-unknown-linux-gnu/release/validator_worker $TRAVIS_TAG
You can’t perform that action at this time.
0 commit comments