Explorar o código

add wercker.yml

Yuki Takei %!s(int64=6) %!d(string=hai) anos
pai
achega
2e1b5817ac
Modificáronse 1 ficheiros con 36 adicións e 0 borrados
  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"