CI builds / pipeline now run tests and build static assets
This commit is contained in:
parent
76f98b74dd
commit
072605dea6
10 changed files with 60 additions and 39 deletions
|
|
@ -1,4 +1,42 @@
|
|||
image: docker:latest
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
|
||||
test_api:
|
||||
stage: test
|
||||
before_script:
|
||||
- docker-compose -f api/test.yml build
|
||||
script:
|
||||
- docker-compose -f api/test.yml run test
|
||||
after_script:
|
||||
- docker-compose -f api/test.yml run test rm -rf funkwhale_api/media/
|
||||
|
||||
tags:
|
||||
- dind
|
||||
|
||||
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
|
||||
|
||||
|
||||
# When using dind, it's wise to use the overlayfs driver for
|
||||
# improved performance.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue