forked from akash-network/node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (60 loc) · 1.53 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
language: go
go:
- "1.13"
sudo: false
git:
depth: 50
env:
global:
- TEST_DELAY_THREAD_START=10ms
- GO111MODULE=on
jobs:
include:
# osx/1.13: tests, integration, image-bins
- name: test
os: osx
osx_image: xcode9.3beta
go: "1.13"
script:
- make build
- make test-vet
- make test
- make integrationdeps-install
- make test-integration
- make image-bins
if: type = cron
# linux/1.13 (mainline): run skipped tests
- name: test-skipped
os: linux
go: "1.13"
sudo: required
env: TEST_UNSKIP=true
script:
- go test -v -count=1 ./...
if: type = cron
# linux/1.13 (mainline): deploy bins, docker dry-run
- name: release-dryrun
os: linux
go: "1.13"
services: [docker]
script:
- curl -sL https://git.io/goreleaser > $GOPATH/bin/goreleaser && chmod a+x $GOPATH/bin/goreleaser
- $GOPATH/bin/goreleaser --skip-publish
if: tag =~ ^v AND fork = false
# linux/1.13 (mainline): deploy bins,docker
- name: release
os: linux
go: "1.13"
services: [docker]
script:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- curl -sL https://git.io/goreleaser > $GOPATH/bin/goreleaser && chmod a+x $GOPATH/bin/goreleaser
- $GOPATH/bin/goreleaser
if: tag =~ ^v AND fork = false
matrix:
allow_failures:
- env: TEST_UNSKIP=true
- name: test-lint
install:
- mkdir -p "$GOPATH/bin"
- make deps-install