File tree 3 files changed +28
-20
lines changed 3 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 1
1
language : 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
2
8
rust :
3
- - stable
9
+ - 1.48.0
4
10
os : linux
5
11
# add nodejs for ganche-cli
6
12
node_js : " 12.12.0"
13
19
global :
14
20
- CARGO_MAKE_RUN_CHECK_FORMAT="true"
15
21
- CARGO_MAKE_RUN_CLIPPY="true"
16
- services :
17
- - redis
18
22
19
23
stages :
20
- - test
21
- - deploy
24
+ - name : run all tests
25
+ - name : release validator
26
+ if : (tag IS present) AND (tag =~ ^validator-v)
22
27
23
28
jobs :
24
29
fast_finish : true
25
30
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 :
28
34
- which cargo-make || cargo install cargo-make
35
+ script :
29
36
- 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 :
36
43
- 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
38
45
deploy :
39
46
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
43
50
draft : true
44
51
on :
45
52
tags : true
46
- all_branches : true
53
+ all_branches : true
54
+ edge : true
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " validator_worker"
3
- version = " 0.1 .0"
3
+ version = " 0.2 .0"
4
4
authors = [
" Lachezar Lechev <[email protected] >" ,
" Samparsky <[email protected] >" ]
5
5
edition = " 2018"
6
6
You can’t perform that action at this time.
0 commit comments