-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
34 lines (29 loc) · 884 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: php
php:
- 5.3
- 5.4
- 5.5
env:
- CAKE_VERSION=2.4.7
- CAKE_VERSION=master
before_script:
- sh -c "mysql -e 'CREATE DATABASE cakephp_test;'"
- git clone git://github.com/cakephp/cakephp ../cakephp && cd ../cakephp && git checkout $CAKE_VERSION
- cp -R ../cakephp-parsley-helper plugins/ParsleyHelper
- chmod -R 777 ../cakephp/app/tmp
- composer global require 'phpunit/phpunit=3.7.33'
- ln -s ~/.composer/vendor/phpunit/phpunit/PHPUnit ../cakephp/vendors/PHPUnit
- echo "<?php
class DATABASE_CONFIG {
public \$test = array(
'datasource' => 'Database/Mysql',
'database' => 'cakephp_test',
'host' => '0.0.0.0',
'login' => 'travis',
'persistent' => false,
);
}" > ../cakephp/app/Config/database.php
script:
- ./lib/Cake/Console/cake test ParsleyHelper AllTests --stderr
notifications:
email: false