Webdriver(wd)testing在本地工作,但超时Travis CI?

我有一些testing用gulp-mocha-selenium写在引擎盖下使用wd。 注意这是“wd”驱动程序而不是vanilla Webdriver可能很重要。

testing在这里: https : //github.com/UWFosterIT/react-starter/blob/master/test/acceptance/hello-spec.js

我的travis.yml是:

language: node_js node_js: - "0.10.37" before_install: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - "npm install -g eslint gulp eslint-plugin-react webpack" before_script: - "sleep 30" script: - "gulp check" - "gulp test:server" - "gulp test:acceptance" addons: firefox: "31" 

testing在当地正常工作,但在TravisCI.org上超时。 我不知道从哪里开始寻找。

特拉维斯的结果: https : //travis-ci.org/UWFosterIT/react-starter/builds/55222925

事实certificate,我需要下载并启动TravisCI上的Selenium

 before_script: - "wget http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar" - "java -jar selenium-server-standalone-2.53.0.jar > /dev/null &" - sleep 3