.gitlab-ci.yml 798 Bytes
Newer Older
fsantore's avatar
fsantore committed
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
image: debian:stretch

services:
    - "postgres:10"

variables:
    POSTGRES_DB: 'postgres'
    POSTGRES_USER: 'postgres'
    PGPASSWORD: 'postgres'
    POSTGRES_HOST: 'postgres'
    GIT_SUBMODULE_STRATEGY: normal

stages:
    - test
run_test:
    stage: test
    script:   
        - apt-get update -q -y
        - apt-get install wget gnupg -y
        - echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/pgdg.list
        - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
        - apt-get update -q -y
        - apt-get install -y postgresql-client-10             
        - ./psql-manager/manager.sh create ./data/
        - ./psql-manager/manager.sh load ./data/
    tags:
        - debian
        - postgres