8000 new travis ci config added · gobeam/custom-validator@46df42a · GitHub
[go: up one dir, main page]

Skip to content

Commit 46df42a

Browse files
committed
new travis ci config added
1 parent 9ba5a53 commit 46df42a

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

.travis.yml

+1-18
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@ dist: bionic
33

44
language: go
55

6-
# Force-enable Go modules. Also force go to use the code in vendor/
7-
# The first two envs will be unnecessary when Go 1.14 lands.
8-
# LINTER_VERSION is the version of golangci-lint. See current releases
9-
# here:
10-
# https://github.com/golangci/golangci-lint/releases
116
env: GO111MODULE=on GOFLAGS='-mod vendor'
127

13-
# You don't need to test on very old versions of the Go compiler. It's the user's
14-
# responsibility to keep their compiler up to date.
158
go:
16-
- 1.13.x
9+
- 1.9
1710

1811
# Only clone the most recent commit.
1912
git:
@@ -27,15 +20,5 @@ install: true
2720
notifications:
2821
email: false
2922

30-
# Anything in before_script that returns a nonzero exit code will flunk the
31-
# build and immediately stop. It's sorta like having set -e enabled in bash.
32-
# We can download and extract the golangci-lint binary in one (long) command.
33-
before_script:
34-
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin v1.23.1
35-
36-
# script always runs to completion (set +e). If we have linter issues AND a
37-
# failing test, we want to see both. Configure golangci-lint with a
38-
# .golangci.yml file at the top level of your repo.
3923
script:
40-
- golangci-lint run # run a bunch of code checkers/linters in parallel
4124
- go test -v -race ./... # Run all the tests with the race detector enabled

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/gobeam/custom-validator
33
go 1.12
44

55
require (
6-
github.com/gin-gonic/gin v1.5.0 // indirect
7-
github.com/stvp/rollbar v0.5.1 // indirect
8-
gopkg.in/go-playground/validator.v9 v9.31.0 // indirect
6+
github.com/gin-gonic/gin v1.5.0
7+
github.com/stvp/rollbar v0.5.1
8+
gopkg.in/go-playground/validator.v9 v9.31.0
99
)

0 commit comments

Comments
 (0)
0