mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: drop Travis CI config (#6799)
Now that we’ve migrated to GitHub Actions and everything seems to work correctly, we can remove Travis CI without losing confidence. Issue: #6726
This commit is contained in:
parent
0a76cd0bd6
commit
f7f122dc41
@ -1,17 +0,0 @@
|
||||
FROM node:10
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
|
||||
libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
|
||||
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
|
||||
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
|
||||
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Add user so we don't need --no-sandbox.
|
||||
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
|
||||
&& mkdir -p /home/pptruser/Downloads \
|
||||
&& chown -R pptruser:pptruser /home/pptruser
|
||||
|
||||
# Run everything after as non-privileged user.
|
||||
USER pptruser
|
@ -1,17 +0,0 @@
|
||||
FROM node:12
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
|
||||
libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
|
||||
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
|
||||
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
|
||||
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Add user so we don't need --no-sandbox.
|
||||
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
|
||||
&& mkdir -p /home/pptruser/Downloads \
|
||||
&& chown -R pptruser:pptruser /home/pptruser
|
||||
|
||||
# Run everything after as non-privileged user.
|
||||
USER pptruser
|
118
.travis.yml
118
.travis.yml
@ -1,118 +0,0 @@
|
||||
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
|
@ -1,7 +1,7 @@
|
||||
# Puppeteer
|
||||
|
||||
<!-- [START badges] -->
|
||||
[![Build status](https://img.shields.io/travis/com/puppeteer/puppeteer/main.svg)](https://travis-ci.com/puppeteer/puppeteer) [![npm puppeteer package](https://img.shields.io/npm/v/puppeteer.svg)](https://npmjs.org/package/puppeteer)
|
||||
[![Build status](https://github.com/puppeteer/puppeteer/workflows/run-checks/badge.svg)](https://github.com/puppeteer/puppeteer/actions?query=workflow%3Arun-checks) [![npm puppeteer package](https://img.shields.io/npm/v/puppeteer.svg)](https://npmjs.org/package/puppeteer)
|
||||
<!-- [END badges] -->
|
||||
|
||||
<img src="https://user-images.githubusercontent.com/10379601/29446482-04f7036a-841f-11e7-9872-91d1fc2ea683.png" height="200" align="right">
|
||||
|
Loading…
Reference in New Issue
Block a user