diff --git a/.circleci/config.yml b/.circleci/config.yml index 5767613e0..1040b32ed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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/* + \ No newline at end of file