Skip to content

Commit f9f26d4

Browse files
committed
Fix: Travis configuration
* add some vertical whitespace * update composer itself in before_install section * remove --dev flag when installing dependencies with Composer as it is the default * explicitly send builds to container-based infrastructure * enable caching of dependencies as installed with Composer * use phpunit as installed with Composer
1 parent 9ec2098 commit f9f26d4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.travis.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
language: php
2+
3+
sudo: false
4+
25
php:
36
- 5.5
7+
8+
cache:
9+
directories:
10+
- $HOME/.composer/cache
11+
412
env:
513
global:
614
secure: Yc+Xohkr/iEUU7FCQuSLXAE9ywNW9g6CfrM1Ki0Hl+fS15F3AXT7dFY8EyCJ4dP1/oI0dBmwrGWrltXV0XWIjGV1Ms3tefCgQpBBAqwT+hImzVP3RbpZW8Iyo2d0VgiDemQF1LWYD/pKu6d8WljTnv5D77NIMdEJjQ0uzeTLWdw=
7-
install: composer install --dev
15+
16+
before_install:
17+
- composer self-update
18+
19+
install:
20+
- composer install --prefer-dist
21+
822
before_script:
923
- git config --global user.email "[email protected]"
1024
- git config --global user.name "Travis CI"
25+
26+
script:
27+
- vendor/bin/phpunit
28+
1129
after_script:
1230
- php composer/bin/test-reporter

0 commit comments

Comments
 (0)