File tree Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ node_js: "12.12.0"
8
8
cache :
9
9
directories :
10
10
- /home/travis/.cargo
11
- # But don't cache the cargo registry
12
- before_cache :
13
- - rm -rf /home/travis/.cargo/registry
14
11
env :
15
12
global :
16
13
- CARGO_MAKE_RUN_CHECK_FORMAT="true"
@@ -19,6 +16,31 @@ services:
19
16
- redis-server
20
17
matrix :
21
18
fast_finish : true
22
- script :
23
- - which cargo-make || cargo install cargo-make
24
- - cargo make ci-flow
19
+
20
+ stages :
21
+ - test
22
+ - deploy
23
+
24
+ jobs :
25
+ include :
26
+ - stage : test
27
+ script :
28
+ - which cargo-make || cargo install cargo-make
29
+ - 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 :
36
+ - 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
38
+ deploy :
39
+ provider : releases
40
+ api_key : $GITHUB_API_TOKEN
41
+ file : $TRAVIS_BUILD_DIR/validator_worker-v$TRAVIS_TAG
42
+ skip_cleanup : true
43
+ draft : true
44
+ on :
45
+ tags : true
46
+ all_branches : true
You can’t perform that action at this time.
0 commit comments