Skip to content
This repository was archived by the owner on Feb 10, 2020. It is now read-only.

Commit c8e0131

Browse files
committed
Update Travis config to also build for Windows
And to use Go Modules.
1 parent b234543 commit c8e0131

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

‎.travis.yml‎

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
1-
sudo: false
21
language: go
3-
2+
sudo: false
3+
dist: trusty
4+
git:
5+
depth: false
46
go:
5-
- 1.9.x
6-
- 1.10.x
7+
- 1.11
78
- tip
8-
9+
os:
10+
- linux
11+
- osx
12+
- windows
913
matrix:
1014
allow_failures:
1115
- go: tip
12-
13-
before_script:
14-
- go get -u github.com/golang/lint/golint
15-
16+
fast_finish: true
17+
exclude:
18+
- os: windows
19+
go: tip
20+
install:
21+
- mkdir -p $HOME/src
22+
- mv $HOME/gopath/src/github.com/bep/go-tocss $HOME/src
23+
- export TRAVIS_BUILD_DIR=$HOME/src/go-tocss
24+
- cd $TRAVIS_BUILD_DIR
1625
script:
17-
- go test ./... -race
18-
19-
after_script:
20-
- test -z "$(gofmt -s -l -w . | tee /dev/stderr)"
21-
- test -z "$(golint ./... | tee /dev/stderr)"
22-
- go vet ./...
23-
24-
os:
25-
- linux
26-
- osx
27-
28-
notifications:
29-
email: false
26+
- go test -race ./...
27+
before_install:
28+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install mingw -y; export PATH=/c/tools/mingw64/bin:"$PATH"; fi

0 commit comments

Comments
 (0)