-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (37 loc) · 1.83 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
language: go
go:
- '1.10.x'
sudo: required
services:
- docker
before_install:
- go get github.com/mitchellh/gox
install:
- # skip
script:
- go get -t -v ./...
- cd cmd/mainnet && CGO_ENABLED=0 gox -os="linux darwin windows" -arch="amd64" -verbose ./...
- cd ../testnet && CGO_ENABLED=0 gox -os="linux darwin windows" -arch="amd64" -verbose ./...
- cd ../..
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: AAoVb/KhpFiNhxrqRS9fCe1Sjn6/wcBy61jqFL8Wlb/YF0rlY5sapslTYRenANbo+WvvAzgHorEkKdpFsFfUG1LFgnqeQzUAAgtbHdJbyPaT6yZZQWLlBO5YOJWWz0J9HAgHI+tcGctQ67VcCPTs3ouTsGL70OMMmsvUZnpPb69ghJ9HvPkPlUSqs4/ZVq5fja3EJuaF28z2l7dlt4euZCTGBoIAeF1e87OdqsAak1EQgDHNWQ/rJORIiR/FAiyYgOrGcdpdZVrUda639vM4rM1u5/scOY8+XZ0G2TUzivU5tmFD1swRFo+jF8UJFnke2d2yw71qmPdFzunRylVA9vdNbjTdU0JKHM7gO4eXu9Nz7CP74VqYVRtPUEmwASfTtJOXfTqI8SRJPXxtySjQbgvSSytkvQ+wRCNmVWjZYhHHJHGknXbW0MNIH6i+EKmi67rPq1CNbvywKEHVGZvl1fOh/Gv2e9U8l5G+azpHhBZ5nc7uSR+eShFodTiWs5lahRa4P5UvviBvs2vHRy2Z/KxGEkp7vZ8mKe1u2M9pmrULOB6B/Qjb55ePuAPRVqL0nDGBPzXa4e1jTTrUke3mQGPtBAtQBjqwrxLAVUtaJDBLxYaq36n+u1nPtgHMI8nOfnTStkXVgXElSj4iA6H2GRmtko+yxGWnJmAkRSVLWy4=
file:
- cmd/mainnet/mainnet_darwin_amd64
- cmd/mainnet/mainnet_linux_amd64
- cmd/mainnet/mainnet_windows_amd64.exe
- cmd/testnet/testnet_darwin_amd64
- cmd/testnet/testnet_linux_amd64
- cmd/testnet/testnet_windows_amd64.exe
on:
repo: seanturner83/eth-height-health
all_branches: true
after_deploy:
- ls -al
- docker build -t seanturner83/eth-height-health:mainnet-${TRAVIS_TAG} -f Dockerfile.mainnet .
- docker build -t seanturner83/eth-height-health:testnet-${TRAVIS_TAG} -f Dockerfile.testnet .
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin
- docker push "seanturner83/eth-height-health:mainnet-${TRAVIS_TAG}"
- docker push "seanturner83/eth-height-health:testnet-${TRAVIS_TAG}"