Skip to content

Commit

Permalink
droped commented hhmv mentions, refactored before script events
Browse files Browse the repository at this point in the history
  • Loading branch information
madalinignisca committed Apr 1, 2016
1 parent 444d3c2 commit f619a37
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .travis.yml
@@ -1,9 +1,9 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- '5.5'
- '5.6'
- '7.0'

sudo: false

Expand All @@ -21,7 +21,7 @@ services:

cache:
directories:
- vendor
# - vendor
- $HOME/.composer/cache

matrix:
Expand All @@ -34,22 +34,22 @@ matrix:
- php: 7.0
env: PHPCS=1 DEFAULT=0

- php: hhvm
env: HHVM=1 DB=sqlite db_dsn='sqlite:///:memory:'
# - php: hhvm
# env: HHVM=1 DB=sqlite db_dsn='sqlite:///:memory:'

- php: hhvm
env: HHVM=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
# - php: hhvm
# env: HHVM=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'

allow_failures:
- env: CODECOVERAGE=1 DEFAULT=0

- php: hhvm
# - php: hhvm

before_script:
before_install:
- sh -c "if [ '$HHVM' != '1' ]; then phpenv config-rm xdebug.ini; fi"
- composer self-update
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- composer install --prefer-dist --no-interaction
# - composer install --prefer-dist --no-interaction

- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test2;'; fi"
Expand All @@ -72,6 +72,9 @@ before_script:
- phpenv rehash
- set +H

before_script:
- composer install --prefer-dist --no-interaction

script:
- sh -c "if [ '$DEFAULT' = '1' ]; then vendor/bin/phpunit; fi"

Expand Down

0 comments on commit f619a37

Please sign in to comment.