This commit is contained in:
Eliot Berriot 2017-06-25 19:12:23 +02:00
parent 270eab46f6
commit 7db4e2cbfa
1 changed files with 40 additions and 34 deletions

View File

@ -1,39 +1,45 @@
stages:
test_api: - test
before_script: # - build
- docker-compose -f api/test.yml build #
script: # test_api:
- docker-compose -f api/test.yml run test # stage: test
after_script: # before_script:
- docker-compose -f api/test.yml run test rm -rf funkwhale_api/media/ # - docker-compose -f api/test.yml build
# script:
tags: # - docker-compose -f api/test.yml run test
- dind # after_script:
# - docker-compose -f api/test.yml run test rm -rf funkwhale_api/media/
build_front: #
image: node:6-alpine # tags:
before_script: # - dind
- cd front #
# build_front:
script: # stage: build
- npm install # image: node:6-alpine
- npm run build # before_script:
cache: # - cd front
key: "$CI_COMMIT_REF_NAME" #
paths: # script:
- front/node_modules # - npm install
artifacts: # - npm run build
name: "front_${CI_COMMIT_REF_NAME}" # cache:
paths: # key: "$CI_COMMIT_REF_NAME"
- front/dist/ # paths:
only: # - front/node_modules
- master # artifacts:
- develop # name: "front_${CI_COMMIT_REF_NAME}"
tags: # paths:
- docker # - front/dist/
# only:
# - master
# - develop
# tags:
# - docker
pages: pages:
stage: test
image: alpine image: alpine
before_script: before_script:
- cd docs - cd docs
@ -42,7 +48,7 @@ pages:
- pip install sphinx - pip install sphinx
- apk --no-cache add make - apk --no-cache add make
- make html - make html
- mv _build/html/ public/ - mv _build/html/ ../public
artifacts: artifacts:
paths: paths:
- public - public