summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorNicolas R <atoomic@cpan.org>2017-11-13 15:04:38 -0600
committerNicolas R <atoomic@cpan.org>2017-11-13 16:50:18 -0600
commitab50f992f5e287f719dfe1f20969ce4cf04e0090 (patch)
tree1264f2128bb1e5feaca8a882acdeeeea5f652758 /.travis.yml
parent2857ab681513bae1800d7494e911ab9f892f342f (diff)
downloadperl-ab50f992f5e287f719dfe1f20969ce4cf04e0090.tar.gz
travis.yaml: fixes for osx
run brew update before installing ccache use TRAVIS_OS_NAME macro to check os
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 961a402682..cd235e74da 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,8 +12,8 @@ compiler:
install:
- git fetch --unshallow --tags # t/porting/cmp_version.t
# install & enable ccache on osx
- - if [ -d /Applications ]; then brew install ccache; fi
- - if [ -d /Applications ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ccache; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
env:
global: