mirror of
https://github.com/emojisum/emojisum.git
synced 2024-11-16 12:48:38 +00:00
Merge pull request #31 from emojisum/travis
travis: cleanup and work-around golint
This commit is contained in:
commit
31734a1a0d
1 changed files with 22 additions and 9 deletions
31
.travis.yml
31
.travis.yml
|
@ -1,24 +1,37 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
|
go_import_path: github.com/emojisum/emojisum
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.x
|
- "1.x"
|
||||||
- 1.11.x
|
- "1.11.x"
|
||||||
- 1.10.x
|
- "1.10.x"
|
||||||
- 1.9.x
|
- "1.9.x"
|
||||||
- 1.8.x
|
- "1.8.x"
|
||||||
- 1.7.x
|
- "1.7.x"
|
||||||
|
|
||||||
|
env:
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
install: true
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email:
|
||||||
|
on_success: change
|
||||||
|
on_failure: always
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- git config --global url."https://".insteadOf git://
|
- git config --global url."https://".insteadOf git://
|
||||||
- go get -u -v golang.org/x/lint/golint
|
|
||||||
- mkdir -p $GOPATH/src/github.com/emojisum && ln -sf $(pwd) $GOPATH/src/github.com/emojisum/emojisum
|
|
||||||
- go get -d ./...
|
- go get -d ./...
|
||||||
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then go get -u golang.org/x/lint/golint ; fi
|
||||||
|
|
||||||
install: true
|
install: true
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then golint -set_exit_status ./... ; fi
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
- golint -set_exit_status ./...
|
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
- go build .
|
- go build .
|
||||||
|
|
Loading…
Reference in a new issue