Yuki Takei 6 лет назад
Родитель
Сommit
2e1b5817ac
1 измененных файлов с 36 добавлено и 0 удалено
  1. 36 0
      packages/growi-commons/wercker.yml

+ 36 - 0
packages/growi-commons/wercker.yml

@@ -0,0 +1,36 @@
+box: node:10
+
+test:
+  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
+
+    - script:
+      name: npm test
+      code: |
+        npm test
+
+  after-steps:
+    - slack-notifier:
+      url: $SLACK_WEBHOOK_URL
+      channel: ci
+      username: wercker
+      notify_on: "failed"