File tree 3 files changed +33
-6
lines changed
3 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 5
5
- " 5.4"
6
6
- " 5.3"
7
7
8
+ env :
9
+ - SYMFONY_VERSION=2.2.*
10
+ - SYMFONY_VERSION=2.3.*
11
+ - SYMFONY_VERSION=2.4.*
12
+ - SYMFONY_VERSION=2.5.*
13
+ - SYMFONY_VERSION=2.6.*
14
+
15
+ matrix :
16
+ fast_finish : true
17
+
8
18
services :
9
19
- redis-server
10
20
- memcached
11
21
12
22
before_script :
13
23
- ./.travis.cache.sh
14
24
- composer self-update
25
+ - composer require symfony/symfony:${SYMFONY_VERSION} --no-update
15
26
- composer install --dev --prefer-source --no-interaction
27
+
28
+ script :
29
+ - php vendor/bin/phpunit
Original file line number Diff line number Diff line change 16
16
17
17
},
18
18
"require" : {
19
- "php" : " >=5.3.0" ,
20
- "symfony/symfony" : " >=2.1.0" ,
21
- "doctrine/cache" : " >=1.3.0"
19
+ "php" : " ~5.3" ,
20
+ "symfony/symfony" : " ~2.2" ,
21
+ "doctrine/cache" : " ~1.3"
22
+ },
23
+ "require-dev" : {
24
+ "phpunit/phpunit" : " ~4.4"
22
25
},
23
26
"suggest" : {
24
27
"ext-memcached" : " Allows for caching with Memcached" ,
Original file line number Diff line number Diff line change 6
6
* @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0
7
7
*/
8
8
9
- if (!@include __DIR__ . '/../../../../../vendor/autoload.php ' ) {
10
- die ("You must set up the project dependencies, run the following commands:
9
+ $ autoloadFile = false ;
10
+ foreach (array (__DIR__ . '/../../../../../vendor/autoload.php ' , __DIR__ . '/../vendor/autoload.php ' ) as $ file ) {
11
+ if (is_file ($ file )) {
12
+ $ autoloadFile = $ file ;
13
+ }
14
+ }
15
+
16
+ if (!$ autoloadFile ) {
17
+ echo "You must set up the project dependencies, run the following commands:
11
18
wget http://getcomposer.org/composer.phar
12
19
php composer.phar install --dev
13
- " );
20
+ " ;
21
+ exit (1 );
14
22
}
23
+
24
+ require $ autoloadFile ;
You can’t perform that action at this time.
0 commit comments