2016-02-09 19:26:32 +08:00
|
|
|
language: go
|
2016-02-09 19:30:10 +08:00
|
|
|
os:
|
2018-09-13 08:17:05 +08:00
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
sudo: false
|
|
|
|
go:
|
|
|
|
- "1.11"
|
|
|
|
- "1.10"
|
|
|
|
env: CGO_ENABLED=0
|
|
|
|
jobs:
|
2017-12-15 10:45:17 +08:00
|
|
|
include:
|
2018-09-13 08:30:02 +08:00
|
|
|
# NOTE: Coverages are not enabled for pull requests yet
|
2018-09-14 07:28:46 +08:00
|
|
|
- stage: deploy
|
2018-09-14 07:35:54 +08:00
|
|
|
name: Generate and upload Linux coverage profiles
|
2018-09-13 08:30:02 +08:00
|
|
|
script: make coverage-travis
|
2018-09-13 08:17:05 +08:00
|
|
|
if: type = push
|
2018-09-13 08:30:02 +08:00
|
|
|
os: linux
|
2018-09-14 07:35:54 +08:00
|
|
|
- name: Generate and upload macOS coverage profiles
|
2018-09-13 08:30:02 +08:00
|
|
|
script: make coverage-travis
|
|
|
|
if: type = push
|
|
|
|
os: osx
|
2018-09-14 07:35:54 +08:00
|
|
|
- name: Build and upload binaries to bintray
|
2018-09-14 20:37:29 +08:00
|
|
|
script: make binaries-travis
|
2018-09-14 07:09:45 +08:00
|
|
|
if: type = push
|
2018-09-13 08:17:05 +08:00
|
|
|
script: make test
|