Skip to content

Commit b2a2546

Browse files
committed
speed up travis, utilize specific phpunit
1 parent d1719a2 commit b2a2546

2 files changed

Lines changed: 26 additions & 14 deletions

File tree

.travis.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
sudo: false
2+
13
language: php
24

35
php:
@@ -8,7 +10,12 @@ php:
810
- 7.0
911
- hhvm
1012

13+
cache:
14+
directories:
15+
- $HOME/.composer/cache/files
16+
1117
env:
18+
- COMPOSER_FLAGS="--prefer-lowest"
1219
- SYMFONY_VERSION="^2.8.2"
1320
- SYMFONY_VERSION="^2.8.2" COMPOSER_FLAGS="--prefer-lowest"
1421
- SYMFONY_VERSION="^3.0.1"
@@ -17,10 +24,12 @@ env:
1724

1825
matrix:
1926
fast_finish: true
27+
2028
allow_failures:
2129
- php: 7.0
2230
- php: hhvm
2331
- env: SYMFONY_VERSION="dev-master"
32+
2433
exclude:
2534
# Symfony 3.x requires PHP 5.5
2635
- php: 5.3
@@ -36,11 +45,12 @@ matrix:
3645
- php: 5.4
3746
env: SYMFONY_VERSION="dev-master"
3847

39-
sudo: false
48+
before_install:
49+
- composer self-update
50+
- if [ "${SYMFONY_VERSION}" != "" ]; then composer require --no-update "symfony/symfony:${SYMFONY_VERSION}"; fi;
4051

41-
before_script:
42-
- curl -s http://getcomposer.org/installer | php
43-
- php composer.phar require --no-update symfony/symfony:${SYMFONY_VERSION}
44-
- php composer.phar install --prefer-source
52+
install:
53+
- composer update ${COMPOSER_FLAGS} --prefer-source
4554

46-
script: phpunit --coverage-text
55+
script:
56+
- vendor/bin/phpunit --colors --coverage-text

composer.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@
88
"name": "William Durand",
99
"email": "william.durand1@gmail.com"
1010
}],
11+
12+
"target-dir": "Propel/PropelBundle",
13+
"autoload": {
14+
"psr-0": { "Propel\\PropelBundle": "" }
15+
},
16+
1117
"require": {
1218
"symfony/symfony": "^2.8.2|^3.0.1",
13-
"symfony/propel1-bridge": "2.7.x-dev|^2.8|^3.0",
19+
"symfony/propel1-bridge": "2.7.x-dev",
1420
"propel/propel1": "~1.6"
1521
},
1622
"require-dev": {
1723
"sensio/framework-extra-bundle": "^3.0.2",
18-
"fzaninotto/faker": "dev-master"
19-
},
20-
"autoload": {
21-
"psr-0": { "Propel\\PropelBundle": "" }
22-
},
23-
"target-dir": "Propel/PropelBundle",
24-
"minimum-stability": "dev"
24+
"fzaninotto/faker": "dev-master",
25+
"phpunit/phpunit": "^4.8.21|^5.0.10"
26+
}
2527
}

0 commit comments

Comments
 (0)