You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
714 B
41 lines
714 B
stages:
|
|
- test
|
|
- deploy
|
|
|
|
server-tests:
|
|
image: python:3.6-slim-stretch
|
|
stage: test
|
|
script:
|
|
- python3 -m pip install pipenv
|
|
- cd server
|
|
- pipenv install --dev --system
|
|
- bash ./run_tests.sh
|
|
tags:
|
|
- docker
|
|
|
|
administration-client-tests:
|
|
image: node:8.11-stretch
|
|
stage: test
|
|
script:
|
|
- yarn install
|
|
- yarn run test:unit
|
|
tags:
|
|
- docker
|
|
|
|
pages:
|
|
image: python:3.6-slim-stretch
|
|
stage: deploy
|
|
script:
|
|
- python3 -m pip install pipenv
|
|
- cd server
|
|
- pipenv install --dev --system
|
|
- cd documentation
|
|
- sphinx-build -M html "." "_build"
|
|
- mv _build/html/ ../../public/
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
tags:
|
|
- docker
|
|
only:
|
|
- master
|