I’m trying to migrating 1.0 to 2.0. Seem like I have a lot of issues. Somebody please help me.
Here is my 1.0 Config file.
general:
branches:
only:
- develop
- /hotfix.*/
dependencies:
cache_directories:
- "app/webroot/node_modules"
override:
- cd app/webroot && npm install
test:
pre:
- git config --global user.email "developers@llcompanyname.com" && git config --global user.name "Circle CI"
override:
- cd app/webroot && npm run minify
deployment:
automerge:
branch: [develop, /hotfix.*/]
commands:
- git add -A
- git diff --quiet --exit-code --cached || git commit -m 'Javascript Minification [skip ci]'
- git push origin $CIRCLE_BRANCH
After I change to 2.0
version: 2
jobs:
general:
branches:
only:
- develop
- /hotfix.*/
dependencies:
cache_directories:
- "app/webroot/node_modules"
override:
- cd app/webroot && npm install
test:
pre:
- git config --global user.email "developers@llcompanyname.com" && git config --global user.name "Circle CI"
override:
- cd app/webroot && npm run minify
workflows:
version: 2
build-deploy:
jobs:
automerge:
branch: [develop, /hotfix.*/]
commands:
- git add -A
- git diff --quiet --exit-code --cached || git commit -m 'Javascript Minification [skip ci]'
- git push origin $CIRCLE_BRANCH