7
7
matrix :
8
8
include :
9
9
- php : 7.2
10
- env : PREFER_LOWEST="" DB=mysql
10
+ env : PREFER_LOWEST="" DB=mysql RUN_PHPSTAN=1 RUN_CSCHECK=1 RUN_REQUIRECHECKER=1
11
+ - php : 7.3
12
+ env : PREFER_LOWEST="" DB=mysql NO_WEAKREF=1
11
13
- php : 7.1
12
14
env : PREFER_LOWEST="" DB=mysql COVERALLS=true
13
15
- php : 7.1
@@ -52,9 +54,6 @@ matrix:
52
54
env : PREFER_LOWEST="" DB=oracle PHPUNITFILE="-c phpunit.oracle.xml"
53
55
- php : 7.1
54
56
env : PREFER_LOWEST="--prefer-lowest" DB=oracle PHPUNITFILE="-c phpunit.oracle.xml"
55
- # 7.3 allowed to fail due to an issue with greenlion/PHP-SQL-Parser: https://github.com/greenlion/PHP-SQL-Parser/pull/304
56
- - php : 7.3
57
- env : PREFER_LOWEST="" DB=mysql NO_WEAKREF=1
58
57
env :
59
58
global :
60
59
- GIT_NAME : " 'Couscous auto deploy'"
@@ -69,17 +68,28 @@ before_script:
69
68
script :
70
69
# Let's run the Oracle script only when the password is available (it is not available in forks unfortunately)
71
70
- |
71
+ if [[ "$COVERALLS" != "true" ]] ; then export NO_COVERAGE="--no-coverage"; fi;
72
72
if [ "$DB" == "oracle" ] ; then
73
- docker run -v $(pwd):/app -v $(pwd)/tests/Fixtures/oracle-startup.sql:/docker-entrypoint-initdb.d/oracle-startup.sql moufmouf/oracle-xe-php vendor/bin/phpunit $PHPUNITFILE;
73
+ docker run -v $(pwd):/app -v $(pwd)/tests/Fixtures/oracle-startup.sql:/docker-entrypoint-initdb.d/oracle-startup.sql moufmouf/oracle-xe-php vendor/bin/phpunit $PHPUNITFILE $NO_COVERAGE ;
74
74
elif [ "$DB" == "mysql8" ] ; then
75
75
sudo /etc/init.d/mysql stop;
76
76
tests/phpunit-mysql8.sh
77
77
else
78
- ./vendor/bin/phpunit $PHPUNITFILE;
78
+ echo ./vendor/bin/phpunit $PHPUNITFILE $NO_COVERAGE;
79
+ ./vendor/bin/phpunit $PHPUNITFILE $NO_COVERAGE;
80
+ fi
81
+ - |
82
+ if [ "$RUN_CSCHECK" == "1" ] ; then
83
+ composer cscheck
84
+ fi
85
+ - |
86
+ if [ "$RUN_PHPSTAN" == "1" ] ; then
87
+ composer phpstan
88
+ fi
89
+ - |
90
+ if [ "$RUN_REQUIRECHECKER" == "1" ] ; then
91
+ composer require-checker
79
92
fi
80
- - composer cscheck
81
- - composer phpstan
82
- - composer require-checker
83
93
after_script :
84
94
- if [ "$COVERALLS" = "true" ] ; then ./vendor/bin/php-coveralls -v; fi
85
95
- if [ "$COVERALLS" = "true" ] ; then vendor/bin/couscous travis-auto-deploy --php-version=7.1 -vvv; fi
0 commit comments