travis-ci - Puppeteer Travis-CI chrome-headless 不工作
问题描述
我正在尝试为我的学生自动化测试。作为一个非常基本的示例:编写一些 HTML。所以我创建了一个测试用例来检查无序列表。无论如何:它在本地工作,但似乎我无法让它在 travis 上工作。我可能会错过一件小事,但不知道出了什么问题:
https://travis-ci.com/maciossek/hft-asgmt-html-01/jobs/127338669/config https://github.com/maciossek/hft-asgmt-html-01
任何帮助都非常感谢!
解决方案
这是我最终得到的 travis.yml(工作)
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:
- yarn test
推荐阅读
- javascript - 根据键删除数组中的值
- ag-grid - ServerSideRowModel - 行分组/树数据:我们如何以编程方式添加根级节点?
- python - BertModel训练期间的Python“无法腌制本地对象”异常
- c - MPI树结构通信
- flutter - 如何在没有快进错误的情况下升级 Flutter?
- javascript - 如何使 VSCode JavaScript 导入片段使用单引号?
- python-3.x - 如何使用像我的图片上传这样的反斜杠来分隔我的十六进制数字列表?
- python - 绘制许多 2 点连接
- javascript - Rails Webpack 错误:自定义 JS 在开发中解决,但在生产中没有解决
- python-3.x - 如何输入小写字母?当输入为小写时程序正在运行,但当输入为标题/大写时显示错误