Skip to content

Commit 3b9fe57

Browse files
author
Ivo Georgiev
authored
Merge pull request #258 from AdExNetwork/dev
fast forward master to dev
2 parents 6bdc3f3 + a1366b8 commit 3b9fe57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+6707
-1951
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
target/
2+
scripts/
3+
node_modules
4+
Dockerfile
5+
docker-compose.yml

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ target
33
.env
44
*.iml
55
.idea
6-
.old
6+
.old
7+
Migrant.toml
8+
node_modules/

.travis.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,46 @@
11
language: rust
22
rust:
33
- stable
4+
os: linux
5+
# add nodejs for ganche-cli
6+
node_js: "12.12.0"
47
# Need to cache the whole `.cargo` directory to keep .crates.toml for
58
# cargo-update to work
69
cache:
710
directories:
811
- /home/travis/.cargo
9-
# But don't cache the cargo registry
10-
before_cache:
11-
- rm -rf /home/travis/.cargo/registry
1212
env:
1313
global:
1414
- CARGO_MAKE_RUN_CHECK_FORMAT="true"
1515
- CARGO_MAKE_RUN_CLIPPY="true"
1616
services:
17-
- redis-server
18-
matrix:
17+
- redis
18+
19+
stages:
20+
- test
21+
- deploy
22+
23+
jobs:
1924
fast_finish: true
20-
script:
21-
- which cargo-make || cargo install cargo-make
22-
- cargo make ci-flow
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

0 commit comments

Comments
 (0)