2016-07-06 04:17:31 -04:00
|
|
|
# Full project: https://gitlab.com/pages/hyde
|
|
|
|
image: python:2.7
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
2019-06-05 12:31:35 -04:00
|
|
|
- vendor/
|
2016-07-06 04:17:31 -04:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- pip install hyde
|
|
|
|
- hyde gen
|
|
|
|
except:
|
2019-11-08 07:06:32 -05:00
|
|
|
variables:
|
|
|
|
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
|
2016-07-06 04:17:31 -04:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- pip install hyde
|
|
|
|
- hyde gen -d public
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-06-05 12:31:35 -04:00
|
|
|
- public
|
2016-07-06 04:17:31 -04:00
|
|
|
only:
|
2019-11-08 07:06:32 -05:00
|
|
|
variables:
|
|
|
|
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
|