Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pbansal
Test-Docker
Commits
32772bac
Commit
32772bac
authored
Jun 04, 2020
by
Jaroslaw Surkont
Browse files
Add gitlab-ci
parent
6eb5a05f
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
32772bac
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment