|
@@ -22,6 +22,11 @@ test:
|
|
|
echo -n "npm " && npm -v
|
|
echo -n "npm " && npm -v
|
|
|
yarn list --depth=0
|
|
yarn list --depth=0
|
|
|
|
|
|
|
|
|
|
+ - script:
|
|
|
|
|
+ name: npm run lint
|
|
|
|
|
+ code: |
|
|
|
|
|
+ npm run lint
|
|
|
|
|
+
|
|
|
- script:
|
|
- script:
|
|
|
name: npm test
|
|
name: npm test
|
|
|
code: |
|
|
code: |
|
|
@@ -36,36 +41,6 @@ test:
|
|
|
username: wercker
|
|
username: wercker
|
|
|
notify_on: "failed"
|
|
notify_on: "failed"
|
|
|
|
|
|
|
|
-lint:
|
|
|
|
|
- steps:
|
|
|
|
|
- - script:
|
|
|
|
|
- name: set yarn cache-folder
|
|
|
|
|
- code: yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
|
|
|
|
|
-
|
|
|
|
|
- - script:
|
|
|
|
|
- name: install dependencies
|
|
|
|
|
- code: |
|
|
|
|
|
- yarn
|
|
|
|
|
-
|
|
|
|
|
- - script:
|
|
|
|
|
- name: print dependencies
|
|
|
|
|
- code: |
|
|
|
|
|
- echo -n "node " && node -v
|
|
|
|
|
- echo -n "npm " && npm -v
|
|
|
|
|
- yarn list --depth=0
|
|
|
|
|
-
|
|
|
|
|
- - script:
|
|
|
|
|
- name: npm run lint
|
|
|
|
|
- code: |
|
|
|
|
|
- npm run lint
|
|
|
|
|
-
|
|
|
|
|
- after-steps:
|
|
|
|
|
- - slack-notifier:
|
|
|
|
|
- url: $SLACK_WEBHOOK_URL
|
|
|
|
|
- channel: ci
|
|
|
|
|
- username: wercker
|
|
|
|
|
- notify_on: "failed"
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
build-prod:
|
|
build-prod:
|
|
|
steps:
|
|
steps:
|
|
@@ -73,23 +48,11 @@ build-prod:
|
|
|
name: set yarn cache-folder
|
|
name: set yarn cache-folder
|
|
|
code: yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
|
|
code: yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
|
|
|
|
|
|
|
|
- - script:
|
|
|
|
|
- name: install dependencies
|
|
|
|
|
- code: |
|
|
|
|
|
- yarn
|
|
|
|
|
-
|
|
|
|
|
- script:
|
|
- script:
|
|
|
name: install plugins
|
|
name: install plugins
|
|
|
code: |
|
|
code: |
|
|
|
yarn add growi-plugin-lsx growi-plugin-pukiwiki-like-linker
|
|
yarn add growi-plugin-lsx growi-plugin-pukiwiki-like-linker
|
|
|
|
|
|
|
|
- - script:
|
|
|
|
|
- name: print dependencies
|
|
|
|
|
- code: |
|
|
|
|
|
- echo -n "node " && node -v
|
|
|
|
|
- echo -n "npm " && npm -v
|
|
|
|
|
- yarn list --depth=0
|
|
|
|
|
-
|
|
|
|
|
- script:
|
|
- script:
|
|
|
name: npm run build:prod:analyze
|
|
name: npm run build:prod:analyze
|
|
|
code: |
|
|
code: |
|
|
@@ -121,23 +84,11 @@ build-dev:
|
|
|
name: set yarn cache-folder
|
|
name: set yarn cache-folder
|
|
|
code: yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
|
|
code: yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
|
|
|
|
|
|
|
|
- - script:
|
|
|
|
|
- name: install dependencies
|
|
|
|
|
- code: |
|
|
|
|
|
- yarn
|
|
|
|
|
-
|
|
|
|
|
- script:
|
|
- script:
|
|
|
name: install plugins
|
|
name: install plugins
|
|
|
code: |
|
|
code: |
|
|
|
yarn add growi-plugin-lsx growi-plugin-pukiwiki-like-linker
|
|
yarn add growi-plugin-lsx growi-plugin-pukiwiki-like-linker
|
|
|
|
|
|
|
|
- - script:
|
|
|
|
|
- name: print dependencies
|
|
|
|
|
- code: |
|
|
|
|
|
- echo -n "node " && node -v
|
|
|
|
|
- echo -n "npm " && npm -v
|
|
|
|
|
- yarn list --depth=0
|
|
|
|
|
-
|
|
|
|
|
- script:
|
|
- script:
|
|
|
name: npm run build:dev
|
|
name: npm run build:dev
|
|
|
code: |
|
|
code: |
|