File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
- TEST_SUITE=static_phpcs
11
11
- TEST_SUITE=static_annotation
12
12
cache :
13
+ apt : true
13
14
directories :
14
15
- $HOME/.composer/cache
16
+ - $HOME/.cache/bin
15
17
matrix :
16
18
exclude :
17
19
- php : 5.6
@@ -21,7 +23,8 @@ matrix:
21
23
before_install :
22
24
- sudo apt-get update -qq
23
25
- sudo apt-get install -y -qq postfix
24
- - composer self-update
26
+ - sh -c "if [ -x $HOME/.cache/bin/composer ]; then $HOME/.cache/bin/composer self-update; echo ''; else mkdir -p $HOME/.cache/bin; curl --connect-timeout 30 -sS 'https://getcomposer.org/installer' | php -- --install-dir $HOME/.cache/bin/ --filename composer; fi"
27
+ - $HOME/.cache/bin/composer --version
25
28
before_script :
26
29
# Mock mail
27
30
- sudo service postfix stop
@@ -50,7 +53,7 @@ before_script:
50
53
# Change memory_limit for travis
51
54
- echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
52
55
- phpenv rehash;
53
- - composer install --no-interaction --prefer-dist
56
+ - $HOME/.cache/bin/ composer install --no-interaction --prefer-dist
54
57
script :
55
58
# Unit tests
56
59
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist; fi"
You can’t perform that action at this time.
0 commit comments