.gitlab-ci.yml 1 KB
Newer Older
Odair M.'s avatar
Odair M. committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#image: ubuntu:16.04

variables:
    POSTGRES_USER: "adega"
    POSTGRES_PASSWORD: "adega"
    POSTGRES_DB: "adega"
    POSTGRES_HOST: "postgres"
    POSTGRES_PORT: "5432"
    VERSION: "DEVELOPMENT"


services:
    - postgres:9.6
14
before_script:
Jomaro Rodrigues's avatar
Jomaro Rodrigues committed
15 16
  - export LC_ALL=C.UTF-8
  - export LANG=C.UTF-8
Odair M.'s avatar
Odair M. committed
17 18 19 20
# apt-get --quiet=2 não é efetivo, com >> /dev/null só mostra erros da saída
# stderr
  - apt-get update --assume-yes >> /dev/null 
  - apt-get install --assume-yes  python3-pip libpq-dev postgresql-client >> /dev/null
21

Odair M.'s avatar
Odair M. committed
22 23
  - pip3 install --quiet -r requirements.txt
  - pip3 show django | grep Version
24

Odair M.'s avatar
Odair M. committed
25 26 27 28 29 30 31 32 33 34 35 36 37
django-tests:
      tags:
        - ubuntu
        - regular
      script:
        - cd src
        - python3 manage.py makemigrations degree
        - python3 manage.py makemigrations educator
        - python3 manage.py makemigrations submission
        - python3 manage.py makemigrations student 
        - python3 manage.py makemigrations admission 
        - python3 manage.py migrate
        - python3 manage.py test
38