diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a42500e22adf3b21bb3a17d10a9a6a7c1edfb0e7..ca3ff8e3a4a4b383b01a64297c4d330916b416fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,6 @@ +stages: + - test + - deploy test-centos7: image: centos:centos7 stage: test @@ -7,4 +10,19 @@ test-centos7: - yum install -y gcc graphviz graphviz-devel - cd ippisite - pip3 install -r requirements.txt - - python3 manage.py test \ No newline at end of file + - python3 manage.py test +test-centos7: + image: centos:centos7 + stage: deploy + script: + - yum install -y epel-release + - yum install install -y python34-pip python34-devel + - yum install -y gcc graphviz graphviz-devel + - cd ippisite + - pip3 install -r requirements.txt + - python3 manage.py test + environment: + name: production + url: https://ippidb.pasteur.fr + only: + - master \ No newline at end of file