-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
49 lines (37 loc) · 997 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
49
language: go
go:
- "1.16"
branches:
only:
- master
- /^v.*$/
os:
- linux
- osx
env:
- GO111MODULE=on
addons:
apt:
packages:
- rpm
cache:
directories:
- vendor
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then chmod +x ./cc-test-reporter; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./cc-test-reporter before-build; fi
install:
- make deps
script:
- make test
after_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
before_deploy:
- rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install package_cloud
deploy:
- provider: script
script: GORELEASER='curl -sL https://git.io/goreleaser | bash -s --' make release
on:
tags: true
condition: $TRAVIS_OS_NAME = linux