forked from bmuschko/link-verifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 917 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
language: go
go:
- 1.14.x
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.23.8
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