-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
65 lines (58 loc) · 3.33 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
services:
- docker
language: go
os:
- linux
cache:
directories:
- $GOPATH/.cache/go-build
- $GOPATH/pkg/mod
go:
- go1.13
go_import_path: github.com/lensesio/lenses-go
install:
go get golang.org/x/lint/golint
jobs:
include:
- stage: Build
script: REVISION=${TRAVIS_COMMIT} VERSION=${TRAVIS_COMMIT} make cross-build
- stage: Lint
script: make lint
- stage: Tests
script: make test
- stage: Build docker
deploy:
on:
tags: false
provider: script
script: REVISION=${TRAVIS_COMMIT} make build-linux && VERSION=${TRAVIS_COMMIT} make build-docker
- stage: Publish docker
branches:
only:
- master
deploy:
on:
tags: true
provider: script
script: REVISION=${TRAVIS_COMMIT} VERSION=${TRAVIS_TAG} make build-linux && make publish
- stage: Release
branches:
only:
- master
before_deploy: REVISION=${TRAVIS_COMMIT} VERSION=${TRAVIS_TAG} make cross-build; cd bin; for i in *; do tar -czf $i.tar.gz $i; done; ls -1; cd ../;
deploy:
on:
tags: true
provider: releases
name: Release ${TRAVIS_TAG}
api_key:
secure: q+kT2K6ZMh4qtiveEmsuC8t/T5IZTZd9zbHeOBQn1YoFt38ym9za94Ehq13jffEvsHOGKX1oc7FxpUkDInDllSXQrYXC2QNEhnA9ZmzijLzyVEKBNir7ts0g0cNXXlEhu+o86z+3nZi14x77NujF+u9ALSOqpLmfo6HmHtCows/Bkf9WC8LQ1wWla4ovh8BkCLe00P+G36tBzpm7khi1In0DaIgQdyG9rUCLQkfKy2smzfq+Cj9R2beXRGP6Zx7so5lwuGCl3xQL7s1LUct/4GyNyTOIpCfZtllJddghw6mY+pJAsurfjP/qdSrGCVj+WAYWh6ZtH0XqqNQe0QnH0N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