From ddfc3df0ae3b333abdf56b347ab65c9a68e24633 Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <f.sauerburger@cern.ch> Date: Wed, 26 Jun 2019 15:21:49 +0200 Subject: [PATCH] Setup web deployment --- .gitlab-ci.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e890324..0e36c80 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,25 @@ +stages: + - test + - doc_build + - deploy + doctest: + stage: test image: python:3.7 script: - pip install -r requirements.txt - python -m doctest nnfwtbn/*.py unittest: + stage: test image: python:3.7 script: - pip install -r requirements.txt - python setup.py test -doc: +doc_build: + stage: doc_build image: python:3.7 script: - pip install -r requirements.txt @@ -25,6 +33,15 @@ doc: - _public expire_in: 1 mos - +deploy: + stage: deploy + dependencies: + - doc_build + variables: + "CI_WEBSITE_DIR": _public/ + image: gitlab-registry.cern.ch/ci-tools/ci-web-deployer + script: + - deploy-dfs + -- GitLab