Change CI configuration to build non-master branches in a test directory for testing/preview

This commit is contained in:
Raoul Snyman 2019-04-17 11:43:05 -07:00
parent deb8464299
commit e145e001d1
No known key found for this signature in database
GPG Key ID: 6C93CB14F74196F7
1 changed files with 17 additions and 2 deletions

View File

@ -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