Browse Source

Externalized tests retry strategy

Sebastien Vandenberghe 7 năm trước cách đây
mục cha
commit
5dca311632
2 tập tin đã thay đổi với 7 bổ sung3 xóa
  1. 6 1
      .travis.yml
  2. 1 2
      tests/validation/integration.js

+ 6 - 1
.travis.yml

@@ -10,7 +10,12 @@ before_script:
 - "export DISPLAY=:99.0"
 - "sh -e /etc/init.d/xvfb start"
 - sleep 3 # give xvfb some time to start
-script: gulp
+script: 
+- gulp typescript-all
+- gulp typedoc-all
+- gulp tests-unit
+- travis_retry gulp tests-validation-virtualscreen
+- travis_retry gulp tests-validation-browserstack
 notifications:
   slack:
     secure: TBYDAN8Dlkx3dM+Q5ClAZem7agAhQ1oB/fGT665qn7D+j2YfWChvlfXegvXL4LPDmQgbI0UfazcjWId5a0EwmmPkRb+kMJItPiMt5jiIp2WKoZQ+qob6H9tBCRJbbpWM430wiPeKfBfbcZP/XSlpVMWhgU5ogAFDSUKjvHT7IuE=

+ 1 - 2
tests/validation/integration.js

@@ -34,8 +34,7 @@ xhr.addEventListener("load", function () {
                 }
 
                 it(test.title, function (done) {
-                    this.timeout(240000);
-                    this.retries(3);
+                    this.timeout(180000);
 
                     try {
                         runTest(index, function(result, screenshot) {