File tree 2 files changed +32
-12
lines changed
2 files changed +32
-12
lines changed Original file line number Diff line number Diff line change 1
- language : php
1
+ # TravisCI configuration for hybridauth/hybridauth
2
+
3
+ language : " php"
4
+ os :
5
+ - " linux"
6
+ dist : " bionic"
2
7
3
8
php :
4
- - 7.2
5
- - 7.3
9
+ - " 7.4"
10
+ - " 7.3"
11
+ - " 7.2"
12
+
13
+ jobs :
14
+ include :
15
+ - name : " PHP 5.6"
16
+ dist : " xenial"
17
+ php : " 5.6"
18
+ # "php": ">=5.4.0"
19
+ - name : " PHP 5.4"
20
+ dist : " trusty"
21
+ php : " 5.4"
6
22
7
- env :
8
- - PHPCS=1 PHPUNIT=1
23
+ cache :
24
+ directories :
25
+ - " ${HOME}/.composer/cache"
9
26
10
27
before_script :
11
- - composer install
12
- - sh -c "if [ '$PHPCS' = '1' ]; then composer global require squizlabs/php_codesniffer=*; fi"
28
+ - " composer validate --strict"
29
+
30
+ install :
31
+ - " composer install --prefer-dist"
32
+ - " composer global require squizlabs/php_codesniffer"
13
33
14
34
script :
15
- - sh -c "if [ '$PHPUNIT' = '1' ]; then vendor/bin/phpunit; fi "
16
- - sh -c "if [ '$PHPCS' = '1' ]; then ~/.config/composer/vendor/bin/ phpcs -p -- extensions=php --standard=PSR2 --ignore=./src/Thirdparty/* ./src; fi "
35
+ - " vendor/bin/phpunit --verbose "
36
+ - " composer global exec -- phpcs -p -s -- extensions=php --standard=PSR2 --ignore=' ./src/Thirdparty/*' ./src"
17
37
18
38
notifications :
19
39
email : false
Original file line number Diff line number Diff line change 16
16
"gitter" : " https://gitter.im/hybridauth/hybridauth"
17
17
},
18
18
"require" : {
19
- "php" : " >= 5.4.0" ,
20
- "firebase/php-jwt" : " * " ,
19
+ "php" : " ^ 5.4 || ^7 .0" ,
20
+ "firebase/php-jwt" : " ^4.0 || ^5.0 " ,
21
21
"phpseclib/phpseclib" : " ~2.0"
22
22
},
23
23
"require-dev" : {
24
24
"ext-curl" : " *" ,
25
- "phpunit/phpunit" : " ^4.8.35 || ^6.5 || ^8"
25
+ "phpunit/phpunit" : " ^4.8.35 || ^6.5 || ^8.0 "
26
26
},
27
27
"autoload" : {
28
28
"psr-4" : {
You can’t perform that action at this time.
0 commit comments