mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-29 02:21:41 +00:00
test for npm
This commit is contained in:
@@ -1,42 +1,17 @@
|
|||||||
version: 2
|
version: 2 # use CircleCI 2.0
|
||||||
jobs:
|
jobs:
|
||||||
build_ui:
|
build_ui:
|
||||||
docker:
|
docker:
|
||||||
- image: node:latest
|
- image: node:latest
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
name: changing directory
|
|
||||||
command: |
|
|
||||||
cd chameleon-client
|
|
||||||
- run:
|
|
||||||
name: installing dependencies
|
|
||||||
command: |
|
|
||||||
npm install
|
|
||||||
- run:
|
|
||||||
name: building ui
|
|
||||||
command: |
|
|
||||||
npm run build
|
|
||||||
- store_artifacts:
|
|
||||||
path: chameleon-client/dist
|
|
||||||
build_java:
|
|
||||||
docker:
|
|
||||||
- image: maven:3.6.2-jdk-12
|
|
||||||
steps:
|
|
||||||
- run: rm -r Main/src/main/resources/web/*
|
|
||||||
- run: mv chameleon-client/dist/* Main/src/main/resources/web
|
|
||||||
- run: cd Main
|
|
||||||
- run: mvn package
|
|
||||||
|
|
||||||
workflows:
|
steps:
|
||||||
version: 2
|
|
||||||
build_and_deploy:
|
- checkout
|
||||||
jobs:
|
|
||||||
- build_ui
|
- run: cd chameleon-client
|
||||||
- build_java:
|
- run: npm install
|
||||||
requires:
|
- run: npm run build
|
||||||
- build_ui
|
|
||||||
# filters:
|
- store_artifacts:
|
||||||
# branches:
|
path: chameleon-client/dist/*
|
||||||
# only: master
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user