Skip to content

Commit fe7f3a5

Browse files
committed
.travis.yml: enable macOS builds too.
1 parent da343d6 commit fe7f3a5

1 file changed

Lines changed: 22 additions & 10 deletions

File tree

.travis.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
# Cf. http://docs.travis-ci.com/user/getting-started/
22
# Cf. http://docs.travis-ci.com/user/languages/go/
33

4-
language: go
5-
6-
go: 1.8.1
7-
8-
# Use the virtualized Trusty beta Travis is running in order to get support for
9-
# installing fuse.
10-
#
11-
# Cf. Personal communication from support@travis-ci.com.
12-
dist: trusty
4+
matrix:
5+
include:
6+
- os: linux
7+
language: go
8+
go: 1.8.1
9+
# Use the virtualized Trusty beta Travis is running in order to get
10+
# support for installing fuse.
11+
#
12+
# Cf. Personal communication from support@travis-ci.com.
13+
dist: trusty
14+
sudo: required
15+
- os: osx
16+
language: go
17+
go: 1.8.1
1318

1419
# Install fuse before installing our code.
1520
before_install:
16-
- sudo apt-get install -qq fuse
21+
# For linux: install fuse.
22+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
23+
sudo apt-get install -qq fuse;
24+
fi
25+
26+
# For macOS: update homebrew and then install osxfuse.
27+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
28+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install osxfuse; fi

0 commit comments

Comments
 (0)