Commit 07d71da9 authored by review-bot's avatar review-bot
Browse files

Merge branch 'feature/ci' into 'master'

Switch to gitlab ci

Closes #1

See merge request !1
parents bac0a5f8 b7743c61
Pipeline #2673 passed with stage
in 2 minutes and 33 seconds
stages:
- test
test:
image: python:3.7
stage: test
services:
- postgres
variables:
CONFIG_FILE: ${CI_PROJECT_DIR}/ci_config.yaml
POSTGRES_HOST_AUTH_METHOD: trust
before_script:
- pip install pipenv
- pip install flake8
- pipenv install --system --dev --ignore-pipfile
- python src/manage.py migrate
script:
- python src/manage.py test src/
- flake8
only:
- merge_requests
- master
sudo: required
dist: xenial
language: python
python:
- "3.6"
services:
- postgresql
env:
- CONFIG_FILE=${TRAVIS_BUILD_DIR}/travis_config.yaml
before_install:
- sudo apt-get update
- sudo apt-get install -y graphviz-dev
install:
- pip install pipenv
- pip install flake8
- pipenv lock
- pipenv install --system --dev
before_script:
- pipenv run src/manage.py migrate
script:
- pipenv run src/manage.py test src/
- flake8
\ No newline at end of file
......@@ -6,7 +6,7 @@ debug: True
database:
user: 'postgres'
password: ''
host: 'localhost'
host: 'postgres'
port: 5432
name: 'postgres'
allowed_users: ['*']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment