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
2
2
# do not run any default scripts coming from `language: rust` (i.e. travis-ci)
3
3
script :
4
4
install :
5
- - which cargo-make || cargo install cargo-make
6
5
# Also don't cache the cargo registry
7
6
before_cache :
8
7
- rm -rf /home/travis/.cargo/registry
20
19
global :
21
20
- CARGO_MAKE_RUN_CHECK_FORMAT="true"
22
21
- CARGO_MAKE_RUN_CLIPPY="true"
23
- services :
24
- - redis
25
22
26
23
stages :
27
- - test
28
- - deploy
24
+ - name : run all tests
25
+ - name : release validator
26
+ if : (tag IS present) AND (tag =~ ^validator-v)
29
27
30
28
jobs :
31
29
fast_finish : true
32
30
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
34
35
script :
35
36
- 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 :
38
42
before_deploy :
39
43
- cargo build -p validator_worker --release --all-features --target x86_64-unknown-linux-gnu
40
44
- cp target/x86_64-unknown-linux-gnu/release/validator_worker $TRAVIS_TAG
You can’t perform that action at this time.
0 commit comments