-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
59 lines (51 loc) · 986 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
50
51
52
53
54
55
56
57
58
59
language: go
sudo: true
# needed for the nfpm pipe
addons:
apt:
packages:
- rpm
go:
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- 1.13.x
- 1.14.x
- master
matrix:
include:
allow_failures:
- go: 1.9.x
- go: 1.10.x
- go: master
env:
- GO111MODULE=on
install: true
# Fix this by renaming the directory before testing.
# https://github.com/travis-ci/travis-ci/issues/4573
script:
- export GOBIN="$GOPATH/bin"
- export PATH="$PATH:$GOBIN"
# Fix dir names
- cd $GOPATH/src/github.com/
- mv Clivern clivern
- cd clivern/pushover-actions
# Config & execute ci tasks
- make install_revive
- make ci
# Workaround to clear any package used for testing only
- git status
- git diff > diff.log
- cat diff.log
- git clean -fd
- git reset --hard
- make verify
deploy:
- provider: script
skip_cleanup: true
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true
go: 1.14.x
condition: $TRAVIS_OS_NAME = linux