Browse Source

Update travis build with jobs

Sebastien Vandenberghe 7 years ago
parent
commit
c2ed372303
1 changed files with 34 additions and 17 deletions
  1. 34 17
      .travis.yml

+ 34 - 17
.travis.yml

@@ -1,30 +1,47 @@
 sudo: required
 dist: trusty
+
 language: node_js
 node_js:
 - '6'
+
+git:
+  depth: 3
+
 cache:
   directories:
     - Tools/Gulp/node_modules
     - Playground/node_modules
     - tests/unit/node_modules
-git:
-  depth: 3
-before_script:
-- travis_retry npm install -g gulp
-- cd ./Tools/Gulp
-- travis_retry npm install
-- "export DISPLAY=:99.0"
-- "sh -e /etc/init.d/xvfb start"
-- sleep 3 # give xvfb some time to start
-script: 
-- gulp tests-whatsnew
-- set -e
-- gulp typescript-all
-- gulp typedoc-all
-- gulp tests-unit
-- travis_retry gulp tests-validation-virtualscreen
-- travis_retry gulp tests-validation-browserstack
+
+install:
+  - travis_retry npm install -g gulp
+  - cd ./Tools/Gulp
+  - travis_retry npm install
+
+jobs:
+  include:
+    - stage: Whats New Update
+      script: gulp tests-whatsnew
+    - stage: Documentation Check
+      script: gulp typedoc-check
+    - stage: Build
+      script: gulp typescript-all
+    - stage: Tests
+      script:
+        - "export DISPLAY=:99.0"
+        - "sh -e /etc/init.d/xvfb start"
+        - sleep 3 # give xvfb some time to start
+        - set -e
+        - gulp typescript-all
+        - gulp typedoc-all
+        - gulp tests-unit
+        - travis_retry gulp tests-validation-virtualscreen
+        - travis_retry gulp tests-validation-browserstack
+    - stage: test
+      script: bundle show
+      rvm: 2.3
+
 notifications:
   slack:
     secure: TBYDAN8Dlkx3dM+Q5ClAZem7agAhQ1oB/fGT665qn7D+j2YfWChvlfXegvXL4LPDmQgbI0UfazcjWId5a0EwmmPkRb+kMJItPiMt5jiIp2WKoZQ+qob6H9tBCRJbbpWM430wiPeKfBfbcZP/XSlpVMWhgU5ogAFDSUKjvHT7IuE=