Commit 32772bac authored by Jaroslaw Surkont's avatar Jaroslaw Surkont
Browse files

Add gitlab-ci

parent 6eb5a05f
stages:
- test
- deploy
test:
stage: test
image: python:3.7
before_script:
- apt-get update && apt-get install -y ncbi-blast+ mafft
- pip install -r requirements.txt
script:
- pytest --cov-report=xml --cov=cathapi --cov=frontend --cov=select_template_api frontend/tests.py select_template_api/tests.py
- coverage report -m
tags:
- docker
deploy:
stage: deploy
script:
- cd Docker
- cp ${ENV_FILE} .env
- docker-compose build
- docker-compose up -d
environment:
name: $CI_COMMIT_BRANCH
tags:
- production
Markdown is supported
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