File tree Expand file tree Collapse file tree 3 files changed +28
-20
lines changed Expand file tree Collapse file tree 3 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 11language : rust
2+ # do not run any default scripts coming from `language: rust` (i.e. travis-ci)
3+ script :
4+ install :
5+ # Also don't cache the cargo registry
6+ before_cache :
7+ - rm -rf /home/travis/.cargo/registry
28rust :
3- - stable
9+ - 1.48.0
410os : linux
511# add nodejs for ganche-cli
612node_js : " 12.12.0"
1319 global :
1420 - CARGO_MAKE_RUN_CHECK_FORMAT="true"
1521 - CARGO_MAKE_RUN_CLIPPY="true"
16- services :
17- - redis
1822
1923stages :
20- - test
21- - deploy
24+ - name : run all tests
25+ - name : release validator
26+ if : (tag IS present) AND (tag =~ ^validator-v)
2227
2328jobs :
2429 fast_finish : true
2530 include :
26- - stage : test
27- script :
31+ - stage : run all tests
32+ # @TODO: Maybe run a separate weekly job and use the cached cargo-make from there
33+ install :
2834 - which cargo-make || cargo install cargo-make
35+ script :
2936 - cargo make ci-flow
30- # But don't cache the cargo registry
31- before_cache :
32- - rm -rf /home/travis/.cargo/registry
33- - stage : deploy
34- if : tag IS present
35- before_deploy :
37+ services :
38+ - redis
39+ - stage : release validator
40+ # Disable the default Rust `install` & `script` from Travis
41+ install :
42+ script :
3643 - cargo build -p validator_worker --release --all-features --target x86_64-unknown-linux-gnu
37- - cp target/x86_64-unknown-linux-gnu/release/validator_worker validator_worker-v $TRAVIS_TAG
44+ - cp target/x86_64-unknown-linux-gnu/release/validator_worker $TRAVIS_TAG
3845 deploy :
3946 provider : releases
40- api_key : $GITHUB_API_TOKEN
41- file : $TRAVIS_BUILD_DIR/validator_worker-v $TRAVIS_TAG
42- skip_cleanup : true
47+ token : $GITHUB_API_TOKEN
48+ file : $TRAVIS_BUILD_DIR/$TRAVIS_TAG
49+ cleanup : false
4350 draft : true
4451 on :
4552 tags : true
46- all_branches : true
53+ all_branches : true
54+ edge : true
Original file line number Diff line number Diff line change 11[package ]
22name = " validator_worker"
3- version = " 0.1 .0"
3+ version = " 0.2 .0"
44authors = [" Lachezar Lechev <lachezar@adex.network>" , " Samparsky <sam@adex.network>" ]
55edition = " 2018"
66
You can’t perform that action at this time.
0 commit comments