|
|
@ -1,13 +1,12 @@ |
|
|
|
kind: pipeline |
|
|
|
kind: pipeline |
|
|
|
type: kubernetes |
|
|
|
type: kubernetes |
|
|
|
name: default |
|
|
|
name: front-end |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: install dependencies |
|
|
|
- name: install dependencies |
|
|
|
image: node |
|
|
|
image: node |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
- npm install |
|
|
|
- npm install |
|
|
|
- cd server && npm install; cd .. |
|
|
|
|
|
|
|
- cd client && npm install; cd .. |
|
|
|
- cd client && npm install; cd .. |
|
|
|
|
|
|
|
|
|
|
|
- name: front-end build |
|
|
|
- name: front-end build |
|
|
@ -15,7 +14,22 @@ steps: |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
- cd client && npm run-script build; cd .. |
|
|
|
- cd client && npm run-script build; cd .. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kind: pipeline |
|
|
|
|
|
|
|
type: kubernetes |
|
|
|
|
|
|
|
name: back-end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
- name: install dependencies |
|
|
|
|
|
|
|
image: node |
|
|
|
|
|
|
|
commands: |
|
|
|
|
|
|
|
- npm install |
|
|
|
|
|
|
|
- cd server && npm install; cd .. |
|
|
|
|
|
|
|
|
|
|
|
- name: back-end test |
|
|
|
- name: back-end test |
|
|
|
image: node |
|
|
|
image: node |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
- cd server && npm test; cd .. |
|
|
|
- cd server && npm test; cd .. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|