gpt4 book ai didi

circleci - CIrcle CI 2.0 codecov : command not found

转载 作者:行者123 更新时间:2023-12-01 01:46:00 25 4
gpt4 key购买 nike

我正在将项目迁移到 Circle CI 2.0。

这是我的 config.yml 文件。

version: 2

jobs:
build:
docker:
- image: circleci/android:api-26-alpha
- image: circleci/python:3.6.1
steps:
- checkout
- run:
name: pre-dependencies
command: pip install --user codecov
- run: sdkmanager --licenses
- run:
name: override-test
command: ./gradlew --info install test coverage
- run:
name: post-test
command: codecov

由于最后一步显示此错误,Circle CI 构建失败。
#!/bin/bash -eo pipefail
npm install codecov
/bin/bash: npm: command not found
Exited with code 127

该步骤预先依赖下载的 codecov 库,这是这一步的输出:
#!/bin/bash -eo pipefail
pip install --user codecov
Collecting codecov
Downloading codecov-2.0.15-py2.py3-none-any.whl
Collecting requests>=2.7.9 (from codecov)
Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)
100% |████████████████████████████████| 92kB 3.5MB/s
Collecting coverage (from codecov)
Downloading coverage-4.5.1-cp27-cp27mu-manylinux1_x86_64.whl (199kB)
100% |████████████████████████████████| 204kB 3.2MB/s
Collecting urllib3<1.23,>=1.21.1 (from requests>=2.7.9->codecov)
Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
100% |████████████████████████████████| 133kB 3.4MB/s
Collecting idna<2.7,>=2.5 (from requests>=2.7.9->codecov)
Downloading idna-2.6-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 2.7MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.7.9->codecov)
Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 3.4MB/s
Collecting certifi>=2017.4.17 (from requests>=2.7.9->codecov)
Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB)
100% |████████████████████████████████| 153kB 3.3MB/s
Installing collected packages: urllib3, idna, chardet, certifi, requests, coverage, codecov
Successfully installed certifi-2018.1.18 chardet-3.0.4 codecov-2.0.15 coverage-4.5.1 idna-2.6 requests-2.18.4 urllib3-1.22

任何想法如何解决它?

最佳答案

免责声明:CircleCI 的开发人员布道师

换行:pip install --user codecovsudo pip install codecov .

第二个命令使用正确的权限安装 Codecov 以用作 shell 命令。

关于circleci - CIrcle CI 2.0 codecov : command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49301202/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com