-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy path.travis.yml
77 lines (69 loc) · 1.75 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
dist: xenial
language: go
go:
- 1.12.x
- 1.13.x
cache:
- $HOME/go
env:
- GO111MODULE=on GOBIN=$HOME
before_install:
- go get -v -u golang.org/x/lint/golint
script:
- find -name go.mod -execdir go vet ./... \;
- lintwarns=$($HOME/golint ./... | grep src-d/datasets || true)
- if [ ! -z $lintwarns ]; then echo $lintwarns; false; fi
- make test-coverage
after_success:
- bash <(curl -s https://codecov.io/bash)
jobs:
include:
- stage: deploy
os: osx
go: 1.13.x
after_success:
- cd $HOME
- gzip -S .darwin_amd64.gz pga-create
- gzip -S .darwin_amd64.gz pga
before_install: skip
install:
- cd PublicGitArchive/pga-create && go install && cd ../..
- cd PublicGitArchive/pga && go install && cd ../..
script: skip
deploy:
provider: releases
api_key:
secure: $GITHUB_TOKEN
file:
- "pga-create.darwin_amd64.gz"
- "pga.darwin_amd64.gz"
skip_cleanup: true
on:
tags: true
- stage: deploy
os: linux
go: 1.13.x
before_install: skip
install:
- cd PublicGitArchive/pga-create && go install && cd ../..
- cd PublicGitArchive/pga && go install && cd ../..
script: skip
after_success:
- cd $HOME
- gzip -S .linux_amd64.gz pga-create
- gzip -S .linux_amd64.gz pga
deploy:
provider: releases
api_key:
secure: $GITHUB_TOKEN
file:
- "pga-create.linux_amd64.gz"
- "pga.linux_amd64.gz"
skip_cleanup: true
on:
tags: true
after_deploy:
- cd PublicGitArchive/pga-create
- make docker-push-latest-release
notifications:
email: false