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

Maintenance Travis Settings #121

Merged
merged 6 commits into from
Nov 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.