funkwhale/.gitlab-ci.yml

59 wiersze
864 B
YAML
Czysty Zwykły widok Historia

2017-06-25 17:12:23 +00:00
stages:
- test
2017-06-25 17:13:46 +00:00
- build
test_api:
stage: test
image: funkwhale/funkwhale:base
2017-06-25 17:13:46 +00:00
before_script:
- cd api
- pip install -r requirements/test.txt
2017-06-25 17:13:46 +00:00
script:
- pytest
2017-06-25 17:13:46 +00:00
tags:
- docker
2017-06-25 17:13:46 +00:00
build_front:
stage: build
image: node:6-alpine
before_script:
- cd front
script:
- npm install
- npm run build
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- front/node_modules
artifacts:
name: "front_${CI_COMMIT_REF_NAME}"
paths:
- front/dist/
only:
- master
- develop
tags:
- docker
2017-06-25 17:05:31 +00:00
pages:
2017-06-25 17:12:23 +00:00
stage: test
2017-06-25 17:05:31 +00:00
image: alpine
before_script:
- cd docs
script:
- apk --no-cache add py2-pip python-dev
- pip install sphinx
- apk --no-cache add make
- make html
2017-06-25 17:12:23 +00:00
- mv _build/html/ ../public
2017-06-25 17:05:31 +00:00
artifacts:
paths:
- public
only:
- develop
2017-06-25 17:07:49 +00:00
tags:
- docker