Newer
Older
image:
name: docker/compose:1.24.0
entrypoint: ['/bin/sh', '-c']
image:
name: docker/compose:1.24.0
entrypoint: ['/bin/sh', '-c']
- docker image prune -f
- docker-compose build --no-cache
- docker-compose up -d
- echo "create database ehasa;" | docker exec -i postgis psql -U postgres
- echo "create user ehasa;" | docker exec -i postgis psql -U postgres
- echo "alter user ehasa with encrypted password 'salasana';" | docker exec -i postgis psql -U postgres
- echo "grant all privileges on database ehasa to ehasa;" | docker exec -i postgis psql -U postgres
- echo 'create extension "uuid-ossp";' | docker exec -i postgis psql -U postgres ehasa
rf-test:
image: gitlab.labranet.jamk.fi:4567/wimma-lab-2019/mysticons/devsecops/robot
stage: rf-test
tags: ['docker']
only:
- testing
script:
- export ROBOT_TESTS=./tests
- export OUTPUT_DIR=./results
- run.sh
artifacts:
when: always
untracked: true
expire_in: 24h
push-results:
stage: push-results
tags: ['shell']
only:
- testing
when: always
script:
- docker cp ./results front:/usr/share/nginx/html