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 #121 from duck8823/maintenance/travis
Browse files Browse the repository at this point in the history
Maintenance Travis Settings
  • Loading branch information
duck8823 authored Nov 3, 2018
2 parents de9a678 + ebd4130 commit 5d3a303
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
sudo: required
services:
- docker
os:
- linux
- osx
# - windows is still early access stage: https://travis-ci.community/c/windows

language: go
go:
- tip
- "1.11"
- "1.11.x"

matrix:
exclude:
- go: tip
os: osx

env:
global:
Expand All @@ -17,17 +24,14 @@ cache:

install: true
before_script:
# ssh settings
- openssl aes-256-cbc -K $encrypted_a66fdba2821d_key -iv $encrypted_a66fdba2821d_iv -in .travis/travis_key.enc -out ~/.ssh/id_rsa -d
- touch ~/.ssh/known_hosts
# download dependencies
- go mod download
script:
- go test -coverprofile cover.out $(go list ./... | grep -v mock_)
after_success:
# for coverage report
- GO111MODULE=off go get -u github.com/mattn/goveralls
- if [ "$TRAVIS_GO_VERSION" = "1.11" ]; then goveralls -service=travis-ci -coverprofile=cover.out -ignore=main.go; fi
- if [ "$TRAVIS_GO_VERSION" = "1.11" ] && [ "$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 All @@ -40,4 +44,6 @@ deploy:
script: goreleaser --release-notes=release-notes.txt
on:
tags: true
condition: $TRAVIS_GO_VERSION = "1.11"
condition:
- $TRAVIS_GO_VERSION = "1.11"
- $$TRAVIS_OS_NAME = "linux"
Binary file removed .travis/travis_key.enc
Binary file not shown.

0 comments on commit 5d3a303

Please sign in to comment.