Skip to content

Commit 78871df

Browse files
committed
TravisCI improvements on builds & validator_worker version 0.2.0
1 parent 26c6198 commit 78871df

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
language: rust
2+
# do not run any default scripts coming from `language: rust` (i.e. travis-ci)
3+
script:
4+
install:
5+
- which cargo-make || cargo install cargo-make
6+
# Also don't cache the cargo registry
7+
before_cache:
8+
- rm -rf /home/travis/.cargo/registry
29
rust:
3-
- stable
10+
- 1.48.0
411
os: linux
512
# add nodejs for ganche-cli
613
node_js: "12.12.0"
@@ -25,22 +32,19 @@ jobs:
2532
include:
2633
- stage: test
2734
script:
28-
- which cargo-make || cargo install cargo-make
2935
- cargo make ci-flow
30-
# But don't cache the cargo registry
31-
before_cache:
32-
- rm -rf /home/travis/.cargo/registry
3336
- stage: deploy
3437
if: (tag IS present) AND (tag =~ ^validator-v)
3538
before_deploy:
3639
- cargo build -p validator_worker --release --all-features --target x86_64-unknown-linux-gnu
3740
- cp target/x86_64-unknown-linux-gnu/release/validator_worker $TRAVIS_TAG
3841
deploy:
3942
provider: releases
40-
api_key: $GITHUB_API_TOKEN
43+
token: $GITHUB_API_TOKEN
4144
file: $TRAVIS_BUILD_DIR/$TRAVIS_TAG
42-
skip_cleanup: true
45+
cleanup: false
4346
draft: true
4447
on:
4548
tags: true
4649
all_branches: true
50+
edge: true

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

validator_worker/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "validator_worker"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = ["Lachezar Lechev <lachezar@adex.network>", "Samparsky <sam@adex.network>"]
55
edition = "2018"
66

0 commit comments

Comments
 (0)