Skip to content

Commit e82f7b6

Browse files
Merge pull request #80 from optimizely/jctong/lint
ci(travis): add linting
2 parents 947bf00 + b25952a commit e82f7b6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@ script:
1414
- go test -v -race ./... -coverprofile=profile.cov
1515
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci
1616
stages:
17+
- 'Lint'
1718
- 'Integration tests'
1819
- 'Test'
1920
jobs:
2021
include:
22+
- stage: 'Lint'
23+
install:
24+
- go get github.com/golangci/golangci-lint/cmd/golangci-lint
25+
script:
26+
- golangci-lint run --out-format=tab --tests=false optimizely/...
27+
2128
- stage: 'Integration Tests'
2229
merge_mode: replace
2330
env: SDK=go
@@ -29,4 +36,4 @@ jobs:
2936
script:
3037
- "$HOME/travisci-tools/fsc-trigger/trigger_fullstack-sdk-compat.sh"
3138
after_success: travis_terminate 0
32-
39+

0 commit comments

Comments
 (0)