Browse Source

Update ci

zhixin 5 years ago
parent
commit
133b503851
1 changed files with 18 additions and 0 deletions
  1. 18 0
      .travis.yml

+ 18 - 0
.travis.yml

@@ -9,12 +9,30 @@ jobs:
       node_js:
         - 12
       name: "Lint src and check docs"
+      cache:
+        npm: true
+        directories:
+          - ~/.cache
       script:
         - cd tools
         - git clone --depth=1 https://github.com/wenzhixin/bootstrap-table-examples
         - npm run pre-commit
       if: branch != master AND type = pull_request
 
+    - stage: test
+      language: node_js
+      node_js:
+        - 12
+      name: "Cypress Test"
+      cache:
+        npm: true
+        directories:
+          - ~/.cache
+      script:
+        - git clone --depth=1 -b feature/cypress-test https://github.com/wenzhixin/bootstrap-table-examples cypress/html
+        - npm run test
+      if: branch != master AND type = pull_request
+
     - stage: deploy
       name: "Deploy docs"
       language: ruby