From e145e001d1840a391e702009cee6d5726d3812f5 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 17 Apr 2019 11:43:05 -0700 Subject: [PATCH] Change CI configuration to build non-master branches in a test directory for testing/preview --- .gitlab-ci.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8fd4422..383d240 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,12 @@ image: alpine +before_script: +- apk --no-cache add make py3-setuptools python3-dev +- python3 -m pip install sphinx sphinx_rtd_theme + pages: + stage: deploy script: - - apk --no-cache add make py3-setuptools python3-dev - - python3 -m pip install sphinx sphinx_rtd_theme - cd manual - make html - mv build/html/ ../public/ @@ -12,3 +15,15 @@ pages: - public only: - master + +test: + stage: test + script: + - cd manual + - make html + - mv build/html/ ../test/ + artifacts: + paths: + - test + except: + - master