File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 6
6
- $HOME/.composer/cache
7
7
matrix :
8
8
include :
9
+ - php : 7.2
10
+ env : PREFER_LOWEST="" DB=mysql RUN_PHPSTAN=1 RUN_CSCHECK=1 RUN_REQUIRECHECKER=1
9
11
- php : 7.3
10
12
env : PREFER_LOWEST="" DB=mysql NO_WEAKREF=1
11
- - php : 7.2
12
- env : PREFER_LOWEST="" DB=mysql
13
13
- php : 7.1
14
14
env : PREFER_LOWEST="" DB=mysql COVERALLS=true
15
15
- php : 7.1
@@ -67,18 +67,28 @@ before_script:
67
67
- if [ -z "$NO_WEAKREF" ] ; then pecl install weakref-beta; fi
68
68
script :
69
69
# Let's run the Oracle script only when the password is available (it is not available in forks unfortunately)
70
+ - if [ "$COVERALLS" -ne "true" ] ; export NO_COVERAGE="--no-coverage"; fi;
70
71
- |
71
72
if [ "$DB" == "oracle" ] ; then
72
- 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 ;
73
74
elif [ "$DB" == "mysql8" ] ; then
74
75
sudo /etc/init.d/mysql stop;
75
76
tests/phpunit-mysql8.sh
76
77
else
77
- ./vendor/bin/phpunit $PHPUNITFILE;
78
+ ./vendor/bin/phpunit $PHPUNITFILE $NO_COVERAGE;
79
+ fi
80
+ - |
81
+ if [ "$RUN_CSCHECK" == "1" ] ; then
82
+ composer cscheck
83
+ fi
84
+ - |
85
+ if [ "$RUN_PHPSTAN" == "1" ] ; then
86
+ composer phpstan
87
+ fi
88
+ - |
89
+ if [ "$RUN_REQUIRECHECKER" == "1" ] ; then
90
+ composer require-checker
78
91
fi
79
- - composer cscheck
80
- - composer phpstan
81
- - composer require-checker
82
92
after_script :
83
93
- if [ "$COVERALLS" = "true" ] ; then ./vendor/bin/coveralls -v; fi
84
94
- if [ "$COVERALLS" = "true" ] ; then vendor/bin/couscous travis-auto-deploy --php-version=7.1 -vvv; fi
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ docker run --rm --name mysql8-tdbm-test -p 3306:3306 -p 33060:33060 -e MYSQL_ROO
11
11
# Let's wait for MySQL 8 to start
12
12
sleep 20
13
13
14
- vendor/bin/phpunit -c phpunit.mysql8.xml
14
+ vendor/bin/phpunit -c phpunit.mysql8.xml $NO_COVERAGE
15
15
RESULT_CODE=$?
16
16
17
17
docker stop mysql8-tdbm-test
You can’t perform that action at this time.
0 commit comments