diff --git a/.travis.yml b/.travis.yml index d8ef23c..eda91d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,15 @@ language: php +env: + global: + - MINK_DEBUG_CACHE_DIR=$HOME/.mink-debug-cache + cache: directories: - bin - vendor - $HOME/.composer/cache - - $HOME/.mink-log-cache + - $MINK_DEBUG_CACHE_DIR php: - 7.0 @@ -14,7 +18,7 @@ php: - hhvm before_install: - - mkdir -p $HOME/.mink-log-cache + - mkdir -p $MINK_DEBUG_CACHE_DIR - travis/run-selenium before_script: diff --git a/travis/run-selenium b/travis/run-selenium index 10d6a29..e7a0471 100755 --- a/travis/run-selenium +++ b/travis/run-selenium @@ -3,8 +3,8 @@ sh -e /etc/init.d/xvfb start export DISPLAY=:99 -if [ ! -f $HOME/.mink-log-cache/selenium.jar ]; then - curl -s http://selenium-release.storage.googleapis.com/2.47/selenium-server-standalone-2.47.1.jar > $HOME/.mink-log-cache/selenium.jar +if [ ! -f "$MINK_DEBUG_CACHE_DIR/selenium.jar" ]; then + curl -s http://selenium-release.storage.googleapis.com/2.47/selenium-server-standalone-2.47.1.jar > "$MINK_DEBUG_CACHE_DIR/selenium.jar" fi -java -jar $HOME/.mink-log-cache/selenium.jar > /dev/null 2>&1 & \ No newline at end of file +java -jar "$MINK_DEBUG_CACHE_DIR/selenium.jar" > /dev/null 2>&1 & \ No newline at end of file