我正在尝试将 cypress 添加到 bitbucket 管道,但它告诉我需要安装 Xvfb,但我不知道如何继续。这是我的 bitbucket.pipelines.yml
# Template NodeJS build
# This template allows you to validate your NodeJS code.
# The workflow allows running tests and code linting on the default branch.
image: node:14.15.4
pipelines:
default:
- step:
name: Build
script:
- npm install
- npm run lint
- npm run cypress:run
Run Code Online (Sandbox Code Playgroud)
这是我的 package.json 脚本
"scripts": {
"cypress:open": "cypress open",
"cypress:run": "npx cypress run --record --key xxxxxxxxxxxx"
}
Run Code Online (Sandbox Code Playgroud)
但在管道中我收到此错误:
+ npm run cypress:run
> wallet-frontend@0.1.0 cypress:run /opt/atlassian/pipelines/agent/build …Run Code Online (Sandbox Code Playgroud) 我尝试在 Ubuntu 20.04 中安装/删除并重新安装/修复 Mysql 和 Workbench,但总是收到此消息:
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (8.0.20-2ubuntu20.04).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 8.0.20-2ubuntu20.04) but 5.8+1.0.5ubuntu2 is to be installed
mysql-client : Depends: mysql-community-client (= 8.0.20-2ubuntu20.04) but it is not installable
mysql-community-test : Depends: mysql-community-server (= 8.0.20-2ubuntu20.04) but it is not installable
Depends: mysql-community-client (= 8.0.20-2ubuntu20.04) but it is not …Run Code Online (Sandbox Code Playgroud) 我使用 oh my posh 在终端上设置了悖论主题。但我在任何地方都找不到这些符号的含义。我尝试使用命令 $ThemeSettings.GitSymbols 但我没有得到任何东西(我使用的是 v3)。我应该去哪里寻找?