forked from bmuschko/link-verifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (34 loc) · 942 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
language: go
go:
- 1.12.x
env:
- GO111MODULE=on
install: true
cache:
directories:
- $GOPATH/pkg/mod
jobs:
include:
- stage: "Compile"
name: "Compile Packages and Dependencies"
script: go build
- stage: "Tests"
name: "Unit Tests"
script: go test ./... -coverprofile=coverage.txt -covermode=count
after_success:
- bash <(curl -s https://codecov.io/bash)
- stage: "Code Quality"
name: "Code Quality Analysis"
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.12.5
script: golangci-lint run
- stage: "Release"
name: "Release Binaries"
script: skip
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux