mirror of
https://github.com/emojisum/emojisum.git
synced 2024-11-23 16:05:40 +00:00
40 lines
807 B
YAML
40 lines
807 B
YAML
language: go
|
|
|
|
go_import_path: github.com/emojisum/emojisum
|
|
|
|
go:
|
|
- "1.x"
|
|
- "1.11.x"
|
|
- "1.10.x"
|
|
- "1.9.x"
|
|
- "1.8.x"
|
|
- "1.7.x"
|
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
sudo: false
|
|
|
|
install: true
|
|
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: always
|
|
|
|
before_install:
|
|
- sudo apt-get update
|
|
- sudo apt-get install -y cargo
|
|
- git config --global url."https://".insteadOf git://
|
|
- go get -d ./...
|
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then go get -u golang.org/x/lint/golint ; fi
|
|
|
|
install: true
|
|
|
|
script:
|
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then golint -set_exit_status ./... ; fi
|
|
- go vet ./...
|
|
- go test -v ./...
|
|
- go build .
|
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then cd ./contrib/emojisum-rs && cargo test ; fi
|