forked from ChainSafe/ChainBridge
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
79 lines (70 loc) · 1.88 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 2020 ChainSafe Systems
# SPDX-License-Identifier: LGPL-3.0-only
env:
global:
- GO111MODULE=on
cache:
cargo: true
npm: true
directories:
- $HOME/.cache/go-build
- $GOPATH/pkg/mod
install:
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get update
- sudo apt-get install ethereum
- wget -P $HOME/bin/ https://chainbridge.ams3.digitaloceanspaces.com/subkey-v2.0.0 && mv $HOME/bin/subkey-v2.0.0 $HOME/bin/subkey && chmod +x $HOME/bin/subkey && subkey --version
jobs:
include:
- stage: "Test"
language: go
go: 1.15.x
name: "Linter"
script:
- make lint
- rm -rf bindings/ # Avoid adding license to bindings
- make license-check
- stage: "Test"
language: go
go: 1.15.x
name: "Go tests"
script:
- set -e
- docker-compose -f ./docker-compose-e2e.yml up -d
- docker ps
- travis_wait 30 make test
- stage: "Test"
language: go
go: 1.15.x
name: "E2E tests"
script:
- set -e
- docker-compose -f ./docker-compose-e2e.yml up -d
- docker ps
- make test-e2e
- stage: "Deploy"
name: "Docker"
script:
- docker build -t chainsafe/chainbridge .
- docker run chainsafe/chainbridge:latest --help
deploy:
- provider: script
script: TARGET=default ./scripts/ci_docker.sh
on:
branch: master
- provider: script
script: TAG=$TRAVIS_TAG TARGET=release ./scripts/ci_docker.sh
on:
tags: true
- stage: "Deploy"
name: "Github Pages"
script:
- make build-mkdocs
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: "./site"
keep_history: true
on:
branch: master