2016-12-13 18:18:58 +00:00
|
|
|
language: go
|
2018-11-15 20:33:31 +00:00
|
|
|
|
|
|
|
go_import_path: github.com/emojisum/emojisum
|
|
|
|
|
2016-12-13 18:18:58 +00:00
|
|
|
go:
|
2018-11-15 20:33:31 +00:00
|
|
|
- "1.x"
|
|
|
|
- "1.11.x"
|
|
|
|
- "1.10.x"
|
|
|
|
- "1.9.x"
|
|
|
|
- "1.8.x"
|
|
|
|
- "1.7.x"
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
matrix:
|
2016-12-13 18:18:58 +00:00
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
2018-11-15 20:33:31 +00:00
|
|
|
install: true
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
|
2016-12-13 18:18:58 +00:00
|
|
|
before_install:
|
2019-03-11 02:48:25 +00:00
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get install -y cargo
|
2016-12-13 18:18:58 +00:00
|
|
|
- git config --global url."https://".insteadOf git://
|
|
|
|
- go get -d ./...
|
2018-11-15 20:33:31 +00:00
|
|
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then go get -u golang.org/x/lint/golint ; fi
|
2016-12-13 18:18:58 +00:00
|
|
|
|
|
|
|
install: true
|
|
|
|
|
|
|
|
script:
|
2018-11-15 20:33:31 +00:00
|
|
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then golint -set_exit_status ./... ; fi
|
2016-12-13 18:18:58 +00:00
|
|
|
- go vet ./...
|
|
|
|
- go test -v ./...
|
|
|
|
- go build .
|
2019-03-11 02:48:25 +00:00
|
|
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then cd ./contrib/emojisum-rs && cargo test ; fi
|