小编Sir*_*axi的帖子

Bitbucket pipeline 您的系统缺少依赖项:Xvfb

我正在尝试将 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)

testing bitbucket npm cypress

16
推荐指数
1
解决办法
2万
查看次数

尝试在 Ubuntu 20.04 中安装 mysql 时未满足的依赖关系

我尝试在 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)

mysql ubuntu

6
推荐指数
1
解决办法
6483
查看次数

理解 oh my posh 中的 git 符号

我使用 oh my posh 在终端上设置了悖论主题。但我在任何地方都找不到这些符号的含义。我尝试使用命令 $ThemeSettings.GitSymbols 但我没有得到任何东西(我使用的是 v3)。我应该去哪里寻找?

在此输入图像描述

git

6
推荐指数
1
解决办法
3110
查看次数

标签 统计

bitbucket ×1

cypress ×1

git ×1

mysql ×1

npm ×1

testing ×1

ubuntu ×1