-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
33 lines (25 loc) · 1.02 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
image: doscio/istsos3-test:alpine
services:
- name: doscio/istsos3-test:alpine
alias: postgres
variables:
# Configure postgres service (https://hub.docker.com/_/postgres/)
POSTGRES_DB: istsos
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST: postgres
before_script:
- export PGPASSWORD=$POSTGRES_PASSWORD
- psql -h "$POSTGRES_HOST" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"
- psql -h "$POSTGRES_HOST" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -f istsos/assets/postgresql_9.4_istsos_3.0.0.sql
stages:
- test
rest:
stage: test
script:
- pytest -s istsos/test/actions/servers/rest/test_uom.py
- pytest -s istsos/test/actions/servers/rest/test_observedProperties.py
- pytest -s istsos/test/actions/servers/rest/test_material.py
- pytest -s istsos/test/actions/servers/rest/test_method.py
- pytest -s istsos/test/actions/servers/rest/test_offering.py
- pytest -s istsos/test/actions/servers/rest/test_specimen.py