File tree Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 1
- language : php
2
-
3
- sudo : false
1
+ dist : xenial
4
2
5
3
matrix :
6
4
include :
7
- - php : 5.5.9
8
- - php : 5.5
9
- - php : 5.6
10
- - php : 7.0
11
- - php : 7.1
12
- - php : 7.2
13
- - php : hhvm
14
- dist : trusty
5
+ - env :
6
+ - PHP_VERSION=5.6
7
+ - env :
8
+ - PHP_VERSION=7.0
9
+ - env :
10
+ - PHP_VERSION=7.1
11
+ - env :
12
+ - PHP_VERSION=7.2
13
+ - env :
14
+ - PHP_VERSION=7.3
15
15
16
16
before_install :
17
- - if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo 'hhvm.jit = false' >> /etc/hhvm/php.ini ; fi
18
- - composer self-update --stable -n
17
+ - travis_retry docker pull registry.gitlab.com/grahamcampbell/php:$PHP_VERSION
18
+
19
+ install :
20
+ - travis_retry docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:$PHP_VERSION install --no-suggest --prefer-dist -n -o
19
21
20
- install : travis_retry composer install --no-suggest --prefer-dist -n -o
22
+ script :
23
+ - docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpunit registry.gitlab.com/grahamcampbell/php:$PHP_VERSION --coverage-clover build/logs/clover.xml
21
24
22
- script : vendor/bin/phpunit
25
+ after_script :
26
+ - travis_retry docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint ocular registry.gitlab.com/grahamcampbell/php:$PHP_VERSION code-coverage:upload --format=php-clover build/logs/clover.xml
Original file line number Diff line number Diff line change 14
14
}
15
15
],
16
16
"require" :{
17
- "php" : " >=5.5.9 " ,
18
- "classpreloader/classpreloader" : " ^3 .0" ,
17
+ "php" : " ^5.6|^7.0 " ,
18
+ "classpreloader/classpreloader" : " ^4 .0" ,
19
19
"symfony/console" : " ^2.3|^3.0|^4.0"
20
20
},
21
21
"require-dev" :{
22
- "phpunit/phpunit" : " ^4.8|^5.0 "
22
+ "phpunit/phpunit" : " ^5.7|^6.5 "
23
23
},
24
24
"autoload" : {
25
25
"psr-4" : {
35
35
},
36
36
"extra" : {
37
37
"branch-alias" : {
38
- "dev-master" : " 2.1 -dev"
38
+ "dev-master" : " 3.0 -dev"
39
39
}
40
- }
40
+ },
41
+ "minimum-stability" : " dev" ,
42
+ "prefer-stable" : true
41
43
}
You can’t perform that action at this time.
0 commit comments