Procházet zdrojové kódy

This is going to be hard

It seems we are currently trying to run Chrome on Travis. Which is a
bit hard (https://github.com/travis-ci/travis-ci/issues/938). Firefox
is recommended:
https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to
-Run-Tests-That-Require-a-GUI

But it's still only Firefox.

We can keep the chrome work for local tests, but I think Travis should
ping Sauce Labs:
https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-Sauce-L
abs

So they can spin up 180 real browsers and test on those.
Kevin van Zonneveld před 9 roky
rodič
revize
c9abfb184f
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      .travis.yml

+ 3 - 0
.travis.yml

@@ -15,7 +15,10 @@ cache:
   - node_modules
   - node_modules
   - website/node_modules
   - website/node_modules
 before_script:
 before_script:
+- export CHROME_BIN=chromium-browser
 - export PATH=${PATH}:${HOME}/bin
 - export PATH=${PATH}:${HOME}/bin
+- export DISPLAY=:99.0
+- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
 script:
 script:
 - npm run build
 - npm run build
 - npm run test
 - npm run test