Explorar o código

Add build to travis ci (#565)

Wei Zhu %!s(int64=8) %!d(string=hai) anos
pai
achega
84dd304e4d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      .travis.yml

+ 3 - 0
.travis.yml

@@ -6,6 +6,7 @@ node_js:
 env:
   matrix:
     - TEST_TYPE=lint
+    - TEST_TYPE=build
     - TEST_TYPE=test-all
     - TEST_TYPE=test-dist
 
@@ -23,6 +24,8 @@ script:
   - |
     if [ "$TEST_TYPE" = lint ]; then
       npm run lint
+    elif [ "$TEST_TYPE" = build ]; then
+      npm run build
     elif [ "$TEST_TYPE" = test-all ]; then
       npm run test:all
     elif [ "$TEST_TYPE" = test-dist ]; then