forked from tomMoulard/fail2ban
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (48 loc) · 1.15 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
language: go
notifications:
email:
on_success: never
on_failure: change
stages:
- test
- e2e
cache:
directories:
- $GOPATH/pkg/mod
services:
- docker
jobs:
fast_finish: true
include:
- go: 1.15.x
env: STABLE=true
stage: test
script: make lint test-v
- go: 1.x
stage: test
script: make lint test-v
- go: tip
stage: test
script: make lint test-v
- stage: e2e
go: 1.15.x
env: STABLE=true
script: ./ci/scripts/e2e.sh
go_import_path: github.com/tomMoulard/fail2ban
allow_failures:
- go: tip
before_install:
# Install linters
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin ${GOLANGCI_LINT_VERSION}
- golangci-lint --version
- curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b $GOPATH/bin ${YAEGI_VERSION}
- go get -u golang.org/x/lint/golint
install:
- go mod tidy
- git diff --exit-code go.mod
# - git diff --exit-code go.sum
- go mod download
- go mod vendor
# - git diff --exit-code ./vendor/
- make fmt
- git diff --exit-code