Skip to content

Commit a9d851f

Browse files
committed
Merge branch '3.0' into master.
2 parents c911030 + fd474ed commit a9d851f

File tree

147 files changed

+6974
-8486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+6974
-8486
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 4
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313
.svn
1414
errors.err
1515
tags
16-
/nbproject/
16+
/nbproject/
17+
/composer.lock
18+
/vendor
19+
/phpunit.xml

.travis.yml

Lines changed: 16 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,35 @@
11
language: php
22

33
php:
4-
- 5.3
54
- 5.4
65
- 5.5
6+
- 5.6
7+
8+
sudo: false
79

810
env:
9-
- CAKE_VERSION=2.3.10 DB=mysql
10-
- CAKE_VERSION=2.3.10 DB=pgsql
11-
- CAKE_VERSION=2.4.10 DB=mysql
12-
- CAKE_VERSION=2.4.10 DB=pgsql
13-
- CAKE_VERSION=master DB=mysql
14-
- CAKE_VERSION=master DB=pgsql
11+
- DB=mysql db_dsn='mysql://[email protected]/cakephp_test'
12+
- DB=pgsql db_dsn='postgres://[email protected]/cakephp_test'
13+
14+
matrix:
15+
fast_finish: true
16+
include:
17+
- php: 5.4
18+
env: PHPCS=1
1519

1620
install:
17-
- git clone git://github.com/cakephp/cakephp ../cakephp && cd ../cakephp && git checkout $CAKE_VERSION
18-
- cp -R ../debug_kit plugins/DebugKit
19-
- chmod -R 777 ../cakephp/app/tmp
20-
- sh -c "composer global require 'phpunit/phpunit=3.7.33'"
21-
- sh -c "ln -s ~/.composer/vendor/phpunit/phpunit/PHPUnit ../cakephp/vendors/PHPUnit"
21+
- composer self-update
22+
- composer install --dev
2223

2324
before_script:
2425
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
2526
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
27+
- phpenv rehash
2628
- set +H
27-
- echo "<?php
28-
class DATABASE_CONFIG {
29-
private \$identities = array(
30-
'mysql' => array(
31-
'datasource' => 'Database/Mysql',
32-
'host' => '0.0.0.0',
33-
'login' => 'travis'
34-
),
35-
'pgsql' => array(
36-
'datasource' => 'Database/Postgres',
37-
'host' => '127.0.0.1',
38-
'login' => 'postgres',
39-
'database' => 'cakephp_test',
40-
'schema' => array(
41-
'default' => 'public',
42-
'test' => 'public'
43-
)
44-
)
45-
);
46-
public \$default = array(
47-
'persistent' => false,
48-
'host' => '',
49-
'login' => '',
50-
'password' => '',
51-
'database' => 'cakephp_test',
52-
'prefix' => ''
53-
);
54-
public \$test = array(
55-
'persistent' => false,
56-
'host' => '',
57-
'login' => '',
58-
'password' => '',
59-
'database' => 'cakephp_test',
60-
'prefix' => ''
61-
);
62-
public function __construct() {
63-
\$db = 'mysql';
64-
if (!empty(\$_SERVER['DB'])) {
65-
\$db = \$_SERVER['DB'];
66-
}
67-
foreach (array('default', 'test') as \$source) {
68-
\$config = array_merge(\$this->{\$source}, \$this->identities[\$db]);
69-
if (is_array(\$config['database'])) {
70-
\$config['database'] = \$config['database'][\$source];
71-
}
72-
if (!empty(\$config['schema']) && is_array(\$config['schema'])) {
73-
\$config['schema'] = \$config['schema'][\$source];
74-
}
75-
\$this->{\$source} = \$config;
76-
}
77-
}
78-
}" > ../cakephp/app/Config/database.php
7929

8030
script:
81-
- ./lib/Cake/Console/cake test DebugKit AllDebugKit --stderr
31+
- sh -c "if [ '$PHPCS' != '1' ]; then phpunit; fi"
32+
- sh -c "if [ '$PHPCS' = '1' ]; then ./vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi"
8233

8334
notifications:
8435
email: false

Console/Command/BenchmarkShell.php

Lines changed: 0 additions & 159 deletions
This file was deleted.

Console/Command/WhitespaceShell.php

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)