27 changed files with 197 additions and 51 deletions
@ -0,0 +1,23 @@ |
|||
version: 2 |
|||
jobs: |
|||
build: |
|||
docker: |
|||
- image: circleci/node:8.11.2 |
|||
steps: |
|||
- checkout |
|||
- run: npm install |
|||
- run: npm run build |
|||
test: |
|||
docker: |
|||
- image: circleci/node:8.11.2 |
|||
steps: |
|||
- checkout |
|||
- run: sh ./tests/fix_puppeteer.sh |
|||
- run: npm install |
|||
- run: npm run test:all |
|||
workflows: |
|||
version: 2 |
|||
build_and_test: |
|||
jobs: |
|||
- build |
|||
- test |
|||
@ -0,0 +1,12 @@ |
|||
import '@babel/polyfill'; |
|||
import 'url-polyfill'; |
|||
import setprototypeof from 'setprototypeof'; |
|||
|
|||
// React depends on set/map/requestAnimationFrame
|
|||
// https://reactjs.org/docs/javascript-environment-requirements.html
|
|||
// import 'core-js/es6/set';
|
|||
// import 'core-js/es6/map';
|
|||
// import 'raf/polyfill'; 只兼容到IE10不需要,况且fetch的polyfill whatwg-fetch也只兼容到IE10
|
|||
|
|||
// https://github.com/umijs/umi/issues/413
|
|||
Object.setPrototypeOf = setprototypeof; |
|||
@ -0,0 +1,8 @@ |
|||
#!/bin/bash |
|||
|
|||
sudo apt-get update |
|||
sudo apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \ |
|||
libexpat1 libfontconfig1 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 |
|||
Loading…
Reference in new issue