mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
test for npm
This commit is contained in:
@@ -1,42 +1,17 @@
|
||||
version: 2
|
||||
version: 2 # use CircleCI 2.0
|
||||
jobs:
|
||||
build_ui:
|
||||
docker:
|
||||
- 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:
|
||||
version: 2
|
||||
build_and_deploy:
|
||||
jobs:
|
||||
- build_ui
|
||||
- build_java:
|
||||
requires:
|
||||
- build_ui
|
||||
# filters:
|
||||
# branches:
|
||||
# only: master
|
||||
|
||||
steps:
|
||||
|
||||
- checkout
|
||||
|
||||
- run: cd chameleon-client
|
||||
- run: npm install
|
||||
- run: npm run build
|
||||
|
||||
- store_artifacts:
|
||||
path: chameleon-client/dist/*
|
||||
|
||||
Reference in New Issue
Block a user