Test(TravisCI): run tests in Firefox (#5831)

* trying to run tests in FF

* run tests in PhantomJS first

* add chrome test run to travis

* Revert "add chrome test run to travis"

This reverts commit 933f7b5e038722b18b62180edfe4cf19aadc11ab.

* update Firefox test script in Travis CI

* use latest version of Firefox in TravisCI tests

* fix firefox artifact signature in travis config

* trying to set screen size with xvfb-run

* increase screen size

* remove DISPLAY env variable
This commit is contained in:
Andrew Cherniavskii 2018-06-25 13:34:32 +02:00 committed by ghybs
parent 757e7b6833
commit 9fda888df2

View File

@ -8,6 +8,7 @@ addons:
- dist - dist
target_paths: target_paths:
- content/leaflet/${NAME} - content/leaflet/${NAME}
firefox: latest
env: env:
global: global:
- ARTIFACTS_BUCKET=leafletjs-cdn - ARTIFACTS_BUCKET=leafletjs-cdn
@ -22,6 +23,7 @@ env:
fSJXkxmQ4MAjUdNFDIirBHhdZme8q3PueFzJ+5odFMvPGn/aITQ= fSJXkxmQ4MAjUdNFDIirBHhdZme8q3PueFzJ+5odFMvPGn/aITQ=
script: script:
- npm test - npm test
- xvfb-run --server-args="-screen 0 1280x1024x16" npm run test-nolint -- --browsers Firefox
after_success: after_success:
- npm run build - npm run build
- cd dist && zip -x .DS_Store -r leaflet.zip . && cd .. - cd dist && zip -x .DS_Store -r leaflet.zip . && cd ..