2016-10-22 60 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 &