Commit b44e1978 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

test deploy

parent 2d790147
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}
[flake8]
max-line-length = 119
exclude = */migrations/*,*/tests.py
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