-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 948 Bytes
/
.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
language: go
go:
- 1.8.x
- 1.9.x
# - release
# - tip
env:
- CODECLIMATE_API_HOST=https://codebeat.co/webhooks/code_coverage
addons:
apt:
packages:
- rpm
matrix:
# allow_failures:
# - go: release
# - go: tip
fast_finish: true
before_install:
- make before_install
script:
- go generate -x $(glide novendor) && git diff --exit-code; code=$?; git checkout -- .; (exit $code)
- make test
after_success:
- bash <(curl -s https://codecov.io/bash)
- go get github.com/goreleaser/goreleaser
- npm install -g codeclimate-test-reporter
- codeclimate-test-reporter < coverage.out
deploy:
- provider: script
skip_cleanup: true
script: make deploy_on_tag
on:
tags: true
condition: $TRAVIS_GO_VERSION =~ ^1\.9(\.[0-9]+)?$
- provider: script
skip_cleanup: true
script: make deploy_on_develop
on:
branch: develop
condition: $TRAVIS_GO_VERSION =~ ^1\.9(\.[0-9]+)?$