Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Merge 71daab9 into a1017be
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Aug 11, 2014
2 parents a1017be + 71daab9 commit f472c3a
Showing 1 changed file with 50 additions and 16 deletions.
66 changes: 50 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,66 @@ php:
- 5.6

env:
global:
- REPO_NAME=Authenticate
- PLUGIN_NAME=Authenticate
- REQUIRE=""

matrix:
- DB=mysql CAKE_VERSION=3.0
- DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_login='travis' db_password=''
- DB=pgsql db_class='Cake\Database\Driver\Postgres' db_dsn='pgsql:host=127.0.0.1;dbname=cakephp_test' db_database="cakephp_test" db_login='postgres' db_password=''
- DB=sqlite db_class='Cake\Database\Driver\Sqlite' db_dsn='sqlite::memory:'
global:
- DEFAULT=1

matrix:
allow_failures:
- php: 5.4
env: PHPCS=1 DEFAULT=0

- php: hhvm

- php: hhvm-nightly

fast_finish: true

include:
- php: 5.4
env:
- DB=mysql CAKE_VERSION=3.0 COVERALLS=1
env: PHPCS=1 DEFAULT=0

- php: 5.4
env:
- DB=mysql CAKE_VERSION=3.0 PHPCS=1
env: COVERALLS=1 DEFAULT=0

- php: hhvm
env: HHVM=1 DB=sqlite db_class='Cake\Database\Driver\Sqlite' db_dsn='sqlite::memory:'

- php: hhvm
env: HHVM=1 DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_login='travis' db_password=''

- php: hhvm-nightly
env: HHVM=1 DB=sqlite db_class='Cake\Database\Driver\Sqlite' db_dsn='sqlite::memory:'

- php: hhvm-nightly
env: HHVM=1 DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_login='travis' db_password=''

before_script:
- git clone -b cake3 https://github.com/FriendsOfCake/travis.git --depth 1 ../travis
- ../travis/before_script.sh
- composer self-update
- composer install --prefer-source --no-interaction --dev

script:
- ../travis/script.sh
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"

- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"

after_success:
- ../travis/after_success.sh
- sh -c "if [ '$PHPCS' = '1' ]; then pear channel-discover pear.cakephp.org; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then pear install --alldeps cakephp/CakePHP_CodeSniffer; fi"

- sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"

- phpenv rehash
- set +H
- cp phpunit.xml.dist phpunit.xml

script:
- sh -c "if [ '$COVERALLS' = '1' ]; then phpunit --stderr --coverage-clover build/logs/clover.xml; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/coveralls -c .coveralls.yml -v; fi"
- sh -c "if [ '$DEFAULT' = '1' ]; then phpunit --stderr; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then phpcs -p --extensions=php --standard=CakePHP --ignore=vendor --ignore=Test --ignore=docs . ; fi"

notifications:
email: false

0 comments on commit f472c3a

Please sign in to comment.