圆压泵车
使各种版本容易被撞出,并在许多项目和网络服务提供者之间重新运行.
bumpercar = require("@cypress/bumpercar")
# configure a new Bumpercar
car = bumpercar.create({
providers: {
travis: {
# find/create one here: https://github.com/settings/tokens
githubToken: "github-token-for-user-with-repo-privileges"
}
circle: {
# find/create one here: https://circleci.com/account/api
circleToken: "circle-token-for-user-with-project-privileges"
}
}
})
# bump your ENV vars with ease
car.updateProjectEnv("cypress-io/cypress-download", "circle", {
VAR_1: "lo"
VAR_2: "and"
VAR_3: "behold"
})
.then ->
# kick off a new build/run with your new vars
car.runProject("cypress-io/cypress-download", "circle")
API 密码
此模块支持
- 特拉维斯
- 设置环境变量
- 以 id 获取最后的构建
- 由 id 重新启动构建
- 圆CI
- 设置环境变量
- 开始建设
- 应用程序
- 设置环境变量
- 开始建设
- 建树
- 设置环境变量
- 开始建设
测试
npm test运行单位测试一次npm run watch持续监视文件更改并重运行测试
调试
运行命令 DEBUG=bumper 环境变量。 要查看单元测试中的调试消息, 请运行其中 DEBUG=test 环境变量.