travis-ci 中运行 puppeteer
2024-10-11 20:13:22
通过 travis-ci 可以构建基于 puppeteer 的自动化任务,基于此构建的一个 计划任务
puppeteer中调用需要禁用沙箱环境
const browser = await puppeteer.launch({args: ['--no-sandbox']});
.travis.yml 文件的配置
https://stackoverflow.com/questions/50682848/puppeteer-travis-ci-chrome-headless-not-working
language: node_js
node_js:
- "9"
dist: trusty
sudo: false
addons:
chrome: stable
before_install:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
cache:
yarn: true
directories:
- node_modules
install:
- yarn install
script:
- node -v
branches:
only:
- master
env:
global:
最新文章
- 深入理解openstack网络架构(1)
- Entity Framework 4、5 多字段排序
- proxy解析
- 基于局部敏感哈希的协同过滤算法之simHash算法
- mysql 日期时间运算函数(转)
- 常用LINUX脚本汇总(1)
- ODI 11g Studio 修改界面语言
- 数组Magic Index
- Advanced Customization of the jQuery Mobile Buttons | Appcropolis
- IOS文件沙盒
- MYSQL 好文章集锦
- Android查缺补漏--Service和IntentService
- python中报错";json.decoder.JSONDecodeError: Expecting value:";的解决
- 向Spring容器中注册组件的方法汇总小结
- idea2018版tomcat基本配置
- getnameinfo函数
- Ubuntu命令行运行C程序和C++程序
- bzoj 1143
- Django:学习笔记(9)——视图
- Mac Xcode下配置OpenGL
热门文章
- Linux从入门到入门
- syntax error near unexpected token `do(写的shell脚本出现格式问题)--->;1.问题2.展示信息3.解决方案
- iOS UINavigationController Class Translation
- 图的最小环floyed
- 通过View.post()获取View的宽高
- 星环大数据安全组件Guardian与hadoop自带的安全组件区别
- 数据分析入门——Pandas类库基础知识
- 为什么 kubernetes 天然适合微服务
- C++ 使用 curl 进行 http 请求(GET、POST、Download)的封装
- iOS开发只简单动画实现