Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #250 from duck8823/maintenance/integration_ci
Browse files Browse the repository at this point in the history
Integration Test in CI
  • Loading branch information
duck8823 authored Jun 8, 2019
2 parents ad36dab + 787e012 commit 90e6736
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,47 @@
language: go

os:
- linux
- osx
- windows

language: go
go:
- "1.11.x"
- "1.12.x"
- tip
env:
global:
- GO111MODULE=on

matrix:
allow_failures:
- go: tip
- os: windows

env:
global:
- GO111MODULE=on

cache:
directories:
- $GOPATH/pkg/mod/cache

services:
- docker

install: true
before_script:
# download dependencies
- go mod download
script:
- go test -coverprofile cover.out $(go list ./... | grep -v mock_)
- |
if [ "$TRAVIS_GO_VERSION" = "1.12.x" ] && [ "$TRAVIS_OS_NAME" = "linux" ] ; then
make build
./duci health
fi
after_success:
# for coverage report
- GO111MODULE=off go get -u github.com/mattn/goveralls
- if [ "$TRAVIS_GO_VERSION" = "1.12.x" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then goveralls -service=travis-ci -coverprofile=cover.out -ignore=main.go; fi
- |
if [ "$TRAVIS_GO_VERSION" = "1.12.x" ] && [ "$TRAVIS_OS_NAME" = "linux" ] ; then
goveralls -service=travis-ci -coverprofile=cover.out -ignore=main.go
fi
before_deploy:
# copy dependencies to vendor
- go mod vendor
Expand Down

0 comments on commit 90e6736

Please sign in to comment.