-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (42 loc) · 825 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
# needed for the nfpm pipe
addons:
apt:
packages:
- rpm
services:
- redis-server
go:
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- 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/Alligator Clivern/alligator
- mv Clivern clivern
- cd clivern/alligator
# 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
matrix:
include:
allow_failures:
- go: 1.9.x
- go: 1.10.x
- go: master