Commit c69b2db2 authored by Emeric Verschuur's avatar Emeric Verschuur

[CI] add job-test-services-mysql and job-test-services-postgres service example jobs

parent 5a7b28d2
......@@ -43,15 +43,30 @@ job-with-volumes:
- test -f /path/to/my/volume/content
- 'echo "/path/to/my/volume/content file content: $(cat /path/to/my/volume/content)"'
job-test-services:
job-test-services-mysql:
stage: build
variables:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: password
CITBX_WAIT_FOR_SERVICE_START: 10
only:
- /^$/
image: mysql
services:
- mysql
tags:
- test
script:
- mysql -h mysql -u root -ppassword test -e 'SHOW VARIABLES LIKE "%version%";'
job-test-services-postgres:
stage: build
variables:
CITBX_WAIT_FOR_SERVICE_START: 10
only:
- /^$/
image: postgres:9.4
services:
- name: postgres:9.4
alias: db-postgres
entrypoint: ["docker-entrypoint.sh"]
......@@ -59,7 +74,7 @@ job-test-services:
tags:
- test
script:
- "true"
- psql -h db-postgres -U postgres -c 'select version();'
job-test-services-ext:
image: registry.gitlab.com/ercom/cijw4gitlab:2.0.1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment