-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
53 lines (44 loc) · 1.79 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
sudo: required
language: go
go:
- "1.17"
branches:
only:
- master
- main
env:
global:
- DOCKER_COMPOSE_VERSION=1.18.0
- GO111MODULE=on
- DISPLAY_NAME=travisBuild
addons:
apt:
packages:
- docker-ce
before_install:
- sudo apt-get install -y -q netcat
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
- docker --version
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- cp .travis.env .env
- sudo sed -i -e 's/AWS_BUCKET_NAME=TRAVIS/AWS_BUCKET_NAME='${AWS_BUCKET_NAME}'/' .env
- sudo sed -i -e 's/AWS_ACCESS_KEY_ID=TRAVIS/AWS_ACCESS_KEY_ID='${AWS_ACCESS_KEY_ID}'/' .env
- sudo sed -i -e 's/AWS_SECRET_ACCESS_KEY=TRAVIS/AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}'/' .env
- sudo sed -i -e 's/AWS_REGION=TRAVIS/AWS_REGION='${AWS_REGION}'/' .env
- sudo sed -i -e 's+ETH_NODE_URL=TRAVIS+ETH_NODE_URL='${ETH_NODE_URL}'+' .env
- sudo sed -i -e 's/STRIPE_KEY_TEST=TRAVIS/STRIPE_KEY_TEST='${STRIPE_KEY_TEST}'/' .env
- sudo sed -i -e 's/MAIN_WALLET_ADDRESS=TRAVIS/MAIN_WALLET_ADDRESS='${MAIN_WALLET_ADDRESS}'/' .env
- sudo sed -i -e 's/MAIN_WALLET_PRIVATE_KEY=TRAVIS/MAIN_WALLET_PRIVATE_KEY='${MAIN_WALLET_PRIVATE_KEY}'/' .env
- sudo sed -i -e 's/ENCRYPTION_KEY=TRAVIS/ENCRYPTION_KEY='${ENCRYPTION_KEY}'/' .env
- docker-compose --version
- rm -rf ./data
- docker-compose up --build -d
install: true
script:
- docker-compose exec storage-node go test ./... -p 1