summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/.travis.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /remote/test/puppeteer/.travis.yml
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'remote/test/puppeteer/.travis.yml')
-rw-r--r--remote/test/puppeteer/.travis.yml118
1 files changed, 118 insertions, 0 deletions
diff --git a/remote/test/puppeteer/.travis.yml b/remote/test/puppeteer/.travis.yml
new file mode 100644
index 0000000000..3dccb9aced
--- /dev/null
+++ b/remote/test/puppeteer/.travis.yml
@@ -0,0 +1,118 @@
+language: node_js
+services: xvfb
+
+# Throughout this file, the following `node_js` versions are being used:
+#
+# - node_js: '10' # The maintenance LTS version.
+# - node_js: '12' # The oldest major active LTS version.
+# - node_js: '14' # The newest major active LTS version.
+
+jobs:
+ include:
+ - os: 'osx'
+ name: 'Unit tests: macOS/Chromium'
+ node_js: '10' # The maintenance LTS version.
+ osx_image: xcode11.4
+ env:
+ - CHROMIUM=true
+ before_install:
+ - PUPPETEER_PRODUCT=firefox npm install
+ script:
+ - ls .local-chromium .local-firefox
+ - npm run tsc
+ - npm run unit
+
+ - os: 'windows'
+ name: 'Unit tests: Windows/Chromium'
+ node_js: '10' # The maintenance LTS version.
+ env:
+ - CHROMIUM=true
+ before_install:
+ - PUPPETEER_PRODUCT=firefox npm install
+ script:
+ - ls .local-chromium .local-firefox
+ - npm run tsc
+ - travis_retry npm run unit
+
+ # Node <10.17's fs.promises module was experimental and doesn't behave as
+ # expected. This problem was fixed in Node 10.19, but we run the unit tests
+ # through on 10.15 to make sure we don't cause any regressions when using
+ # fs.promises. See https://github.com/puppeteer/puppeteer/issues/6548 for an
+ # example.
+ - node_js: '10.15.0'
+ name: 'Node 10.15 Unit tests: Linux/Chromium'
+ env:
+ - CHROMIUM=true
+ before_install:
+ - PUPPETEER_PRODUCT=firefox npm install
+ script:
+ - npm run unit
+
+ - node_js: '10' # The maintenance LTS version.
+ name: 'Unit tests [with coverage]: Linux/Chromium'
+ env:
+ - CHROMIUM=true
+ before_install:
+ - PUPPETEER_PRODUCT=firefox npm install
+ script:
+ - travis_retry npm run unit-with-coverage
+ - npm run assert-unit-coverage
+
+ - node_js: '12' # The oldest major active LTS version.
+ name: 'Unit tests [Node 12]: Linux/Chromium'
+ env:
+ - CHROMIUM=true
+ before_install:
+ - PUPPETEER_PRODUCT=firefox npm install
+ script:
+ - npm run unit
+
+ - node_js: '14' # The newest major active LTS version.
+ name: 'Unit tests [Node 14]: Linux/Chromium'
+ env:
+ - CHROMIUM=true
+ before_install:
+ - PUPPETEER_PRODUCT=firefox npm install
+ script:
+ - npm run unit
+
+ - node_js: '12' # The oldest major active LTS version.
+ name: 'Browser tests: Linux/Chromium'
+ addons:
+ chrome: stable
+ env:
+ - CHROMIUM=true
+ script:
+ - npm run test-browser
+
+ # This bot runs all the extra checks that aren't the main Puppeteer unit tests.
+ - node_js: '10' # The maintenance LTS version.
+ name: 'Extra tests: Linux/Chromium'
+ env:
+ - CHROMIUM=true
+ script:
+ - npm run lint
+ # Ensure that we can generate the new docs without erroring
+ - npm run generate-docs
+ - npm run ensure-correct-devtools-protocol-revision
+
+ # This bot runs separately as it changes package.json to test puppeteer-core
+ # and we don't want that leaking into other bots and causing issues.
+ - node_js: '10' # The maintenance LTS version.
+ name: 'Test bundling and install of packages'
+ env:
+ - CHROMIUM=true
+ script:
+ - npm run test-install
+
+ - node_js: '10' # The maintenance LTS version.
+ name: 'Unit tests: Linux/Firefox'
+ env:
+ - FIREFOX=true
+ before_install:
+ - PUPPETEER_PRODUCT=firefox npm install
+ script:
+ - npm run funit
+
+notifications:
+ email: false