Skip to content

Commit 62a7c3e

Browse files
authored
Merge pull request #198 from browserstack/travis_timeout
Travis timeout
2 parents fb11e48 + 4175c7d commit 62a7c3e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,13 @@ To run a larger suite of tests ensuring compatibility with older versions of QUn
323323
npm run test-ci
324324

325325
Tests are also run for every pull request, courtesy [Travis CI](https://travis-ci.org/).
326+
327+
### Timeout issue with Travis CI
328+
329+
You might face [build timeout issue on Travis](https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received) if runner takes more than 10 minutes to run tests.
330+
331+
There are 2 possible ways to solve this problem:
332+
1. Run a script which does `console.log` every 1-2 minutes. This will output to console and hence avoid Travis build timeout
333+
2. Use `travis_wait` function provided by Travis-CI. You can prefix `browserstack-runner` command by `travis-wait` in your `travis.yml` file
334+
335+
We would recommend using `travis_wait` function. It also allows you to configure wait time (ex: `travis_wait 20 browserstack-runner`, this will extend wait time to 20 minutes). Read more about `travis_wait` [here](https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received)

0 commit comments

Comments
 (0)