2016-10-22 56 views

回答

0

特拉维斯提供usage of the chrome add-on。如果你想在Linux上运行你的构建(可信赖),你需要做的就是在你的travis文件中指定chrome并在开始测试之前以无头模式启动浏览器。

dist: trusty 
addons: 
    chrome: stable 
before_install: 
    - # start your web application and listen on `localhost` 
    - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &