test for npm

This commit is contained in:
ori agranat
2019-11-19 19:20:10 +02:00
parent f48d4f8040
commit cedd20aa24

View File

@@ -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/*