Fix pages job

parent b6f81f6b
Pipeline #1603 passed with stages
in 10 minutes and 44 seconds
# Setup some variables and caches # Setup variables and caches ---------------------------------------------------
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache" PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
...@@ -7,7 +7,7 @@ cache: ...@@ -7,7 +7,7 @@ cache:
- "$CI_PROJECT_DIR/pip-cache" - "$CI_PROJECT_DIR/pip-cache"
key: "$CI_PROJECT_ID" key: "$CI_PROJECT_ID"
# Declare the stages # Declare the stages -----------------------------------------------------------
stages: stages:
- prepare - prepare
- lint - lint
...@@ -15,7 +15,7 @@ stages: ...@@ -15,7 +15,7 @@ stages:
- build - build
- deploy - deploy
# PREPARE stage # PREPARE stage ----------------------------------------------------------------
prepare: prepare:
stage: prepare stage: prepare
image: python:3.5 image: python:3.5
...@@ -24,7 +24,7 @@ prepare: ...@@ -24,7 +24,7 @@ prepare:
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install -r docs/requirements.txt - pip install -r docs/requirements.txt
# CHECK stage # LINT stage -------------------------------------------------------------------
setup: setup:
image: python:3.5 image: python:3.5
stage: lint stage: lint
...@@ -55,8 +55,11 @@ docs: ...@@ -55,8 +55,11 @@ docs:
- pip install tox - pip install tox
script: tox -e docs script: tox -e docs
allow_failure: true allow_failure: true
artifacts:
paths:
- dist/docs/
# TEST stage # TEST stage -------------------------------------------------------------------
py34-django111: py34-django111:
image: python:3.4 image: python:3.4
stage: test stage: test
...@@ -137,7 +140,7 @@ py37-django20: ...@@ -137,7 +140,7 @@ py37-django20:
paths: paths:
- .coverage.* - .coverage.*
# BUILD stage # BUILD stage ------------------------------------------------------------------
build: build:
image: docker:latest image: docker:latest
services: services:
...@@ -145,7 +148,7 @@ build: ...@@ -145,7 +148,7 @@ build:
stage: build stage: build
script: echo "Build Docker images" script: echo "Build Docker images"
# DEPLOY stage # DEPLOY stage -----------------------------------------------------------------
deploy_staging: deploy_staging:
stage: deploy stage: deploy
script: script:
...@@ -169,7 +172,9 @@ deploy_prod: ...@@ -169,7 +172,9 @@ deploy_prod:
pages: pages:
stage: deploy stage: deploy
image: python:3.5
dependencies: dependencies:
- docs
- py34-django111 - py34-django111
- py35-django111 - py35-django111
- py36-django111 - py36-django111
...@@ -182,10 +187,9 @@ pages: ...@@ -182,10 +187,9 @@ pages:
- pip install tox - pip install tox
script: script:
- tox -e report - tox -e report
- mv htmlcov/ public/ - mv htmlcov/ dist/docs/
- mv dist/docs/ public/
artifacts: artifacts:
paths: paths:
- public - public
expire_in: 30 days expire_in: 30 days
only:
- master
...@@ -16,3 +16,10 @@ Indices and tables ...@@ -16,3 +16,10 @@ Indices and tables
* :ref:`genindex` * :ref:`genindex`
* :ref:`modindex` * :ref:`modindex`
* :ref:`search` * :ref:`search`
Code Coverage
=============
`Coverage index`_.
.. _`Coverage index`: htmlcov/index.html
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment