Skip to content

Commit

Permalink
Add ~/.npm dir to cache and only create database on non resource setup
Browse files Browse the repository at this point in the history
Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
  • Loading branch information
feryardiant committed Oct 9, 2016
1 parent c52aafb commit dff2ab1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -4,6 +4,7 @@ sudo: false

cache:
directories:
- ~/.npm
- node_modules
- vendor

Expand Down Expand Up @@ -41,7 +42,7 @@ before_install:
- PHP=$TRAVIS_PHP_VERSION
- if [[ $setup = resource ]]; then source ~/.nvm/nvm.sh && nvm install 6; fi
- if [[ ! $PHP = hhvm* ]]; then ini_file=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; else ini_file=/etc/hhvm/php.ini; fi
- mysql -u $DB_USER -e "create database if not exists ${DB_NAME}"
- if [[ ! $setup = resource ]]; then mysql -u $DB_USER -e "create database if not exists ${DB_NAME}"; fi

install:
- if [[ ! $setup ]]; then composer install -n -q; fi
Expand Down

0 comments on commit dff2ab1

Please sign in to comment.