Commit 4e2f8681 authored by Tom Käsler's avatar Tom Käsler

remove n from jobs (project now builds with node 8)

split build jobs
parent d61527e3
stages:
- test
- build
- test
- deploy
test:
stage: test
build_backend:
stage: build
only:
- master
- CI
tags:
- nodejs
script:
- npm install -g n
- n 7.10.0
- cd backend
- npm install
- npm test
- npm run prod
artifacts:
paths:
- backend/dist
build:
build_frontend:
stage: build
only:
- master
......@@ -22,19 +26,22 @@ build:
tags:
- nodejs
script:
- npm install -g n
- n 7.10.0
- cd backend
- npm install
- npm run prod
- cd ../frontend
- cd frontend
- npm install
- npm run prod
artifacts:
paths:
- backend/dist
- frontend/dist
test:
stage: test
tags:
- nodejs
script:
- cd backend
- npm install
- npm test
deploy:
stage: deploy
only:
......@@ -43,7 +50,8 @@ deploy:
tags:
- ssh
dependencies:
- build
- build_backend
- build_frontend
script:
- chmod -R a+rX,ug+w backend
- chmod -R a+rX,ug+w frontend
......
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