Skip to content

Commit c2a4d50

Browse files
committed
Add jobs to test latest PHP version
1 parent 2ee58e1 commit c2a4d50

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,26 @@ test:php:
3636
- build/docs/
3737
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
3838

39+
test:php-last:
40+
image: registry.gitlab.com/aplus-framework/images/base:3
41+
stage: test
42+
timeout: 10 minutes
43+
cache:
44+
paths:
45+
- vendor/
46+
services:
47+
- mariadb
48+
variables:
49+
MYSQL_HOST: mariadb
50+
MYSQL_DATABASE: framework-tests
51+
MYSQL_ROOT_PASSWORD: password
52+
before_script:
53+
- php -v
54+
- composer update
55+
script:
56+
- vendor/bin/phpunit --colors=never
57+
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
58+
3959
test:php:mysql:
4060
stage: test
4161
timeout: 10 minutes
@@ -60,6 +80,30 @@ test:php:mysql:
6080
- vendor/bin/phpunit --colors=never
6181
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
6282

83+
test:php:mysql-last:
84+
image: registry.gitlab.com/aplus-framework/images/base:3
85+
stage: test
86+
timeout: 10 minutes
87+
cache:
88+
paths:
89+
- vendor/
90+
services:
91+
- name: mysql
92+
command:
93+
- --default-authentication-plugin=mysql_native_password
94+
- --local-infile=true
95+
variables:
96+
MYSQL_HOST: mysql
97+
MYSQL_DATABASE: framework-tests
98+
MYSQL_ROOT_PASSWORD: password
99+
DB_HOST: mysql
100+
DB_IMAGE: mysql
101+
before_script:
102+
- php -v
103+
- composer update
104+
script:
105+
- vendor/bin/phpunit --colors=never
106+
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
63107

64108
pages:
65109
stage: deploy

0 commit comments

Comments
 (0)