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

variables:
    POSTGRES_USER: "adega"
    POSTGRES_PASSWORD: "adega"
    POSTGRES_DB: "adega"
    POSTGRES_HOST: "postgres"
    POSTGRES_PORT: "5432"
    VERSION: "DEVELOPMENT"
10
    GIT_SUBMODULE_STRATEGY: recursive
Odair M.'s avatar
Odair M. committed
11 12 13

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

Odair M.'s avatar
Odair M. committed
23 24
  - pip3 install --quiet -r requirements.txt
  - pip3 show django | grep Version
25 26
  
  
Odair M.'s avatar
Odair M. committed
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 
38
        - python3 manage.py makemigrations grid 
Odair M.'s avatar
Odair M. committed
39 40
        - python3 manage.py migrate
        - python3 manage.py test