Skip to content

Commit b45b119

Browse files
committed
TravisCI - try to disable default travis-ci rust scripts
1 parent 78871df commit b45b119

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.travis.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: rust
22
# do not run any default scripts coming from `language: rust` (i.e. travis-ci)
33
script:
44
install:
5-
- which cargo-make || cargo install cargo-make
65
# Also don't cache the cargo registry
76
before_cache:
87
- rm -rf /home/travis/.cargo/registry
@@ -20,21 +19,26 @@ env:
2019
global:
2120
- CARGO_MAKE_RUN_CHECK_FORMAT="true"
2221
- CARGO_MAKE_RUN_CLIPPY="true"
23-
services:
24-
- redis
2522

2623
stages:
27-
- test
28-
- deploy
24+
- name: run all tests
25+
- name: release validator
26+
if: (tag IS present) AND (tag =~ ^validator-v)
2927

3028
jobs:
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

0 commit comments

Comments
 (0)