This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make descriptions more self-documenting
[perl5.git] / .travis.yml
index 961a402..cd235e7 100644 (file)
@@ -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: