Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
b44e1978
Commit
b44e1978
authored
Mar 06, 2018
by
Guilhem Saurel
Browse files
test deploy
parent
2d790147
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
b44e1978
variables
:
GIT_SSL_NO_VERIFY
:
"
true"
GIT_DEPTH
:
"
3"
SECRET_KEY
:
"
pipo"
DEPLOY_URL
:
"
http://rainboard.laas.fr/deploy"
build
:
stage
:
build
image
:
python:alpine
before_script
:
-
pip install flake8
script
:
-
flake8
test
:
stage
:
test
image
:
docker
script
:
-
docker build -t ${CI_PROJECT_NAME} .
-
docker run --rm -e SECRET_KEY ${CI_PROJECT_NAME} ./manage.py migrate
-
docker run --rm -e SECRET_KEY ${CI_PROJECT_NAME} ./manage.py test
-
docker tag ${CI_PROJECT_NAME} eur0c.laas.fr:5000/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}
-
docker push eur0c.laas.fr:5000/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}
deploy
:
stage
:
deploy
image
:
appropriate/curl
only
:
-
master
script
:
-
curl ${DEPLOY_URL}
setup.cfg
0 → 100644
View file @
b44e1978
[flake8]
max-line-length = 119
exclude = */migrations/*,*/tests.py
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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