forked from google/go-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (24 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
os:
- linux
- osx
language: go
go_import_path: github.com/google/go-cloud
go: "1.10.x"
before_install:
# The Bash that comes with OS X is ancient.
# checkpr.sh needs Bash 4. It's OK to not worry about this issue for
# customers as checkpr.sh is only for running on Travis.
# grep is similar: it's not GNU grep, which means commands aren't portable.
# Homebrew installs grep as ggrep if you don't build from source, so it needs
# moving so it takes precedence in the PATH.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
HOMEBREW_NO_AUTO_UPDATE=1 brew install bash grep;
mv $(brew --prefix)/bin/ggrep $(brew --prefix)/bin/grep;
fi
install:
- "go get -u golang.org/x/vgo"
- "go get -u github.com/golangci/golangci-lint/cmd/golangci-lint"
script:
# TRAVIS_PULL_REQUEST is set to "false" for branch builds, and the PR number
# for pull request builds. Branch builds should test everything.
- 'if [[ "$TRAVIS_PULL_REQUEST" != false ]]; then internal/testing/checkpr.sh -short -race; else vgo test -short -race ./...; fi'