@cypress/bumpercar

2.0.12 • Public • Published

cypress-bumpercar

Make it easy to bump versions and re-run CI builds across many projects and CI providers.

CircleCI semantic-release renovate-app badge

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

This module supports

  • Travis
    • [x] setting environment variables
    • [x] fetch last build by id
    • [x] restart build by id
  • CircleCI
    • [x] setting environment variables
    • [x] starting a build
  • AppVeyor
    • [x] setting environment variables
    • [ ] starting a build
  • Buildkite
    • [x] setting environment variables
    • [ ] starting a build

Testing

  • npm test runs the unit tests once
  • npm run watch keeps watching for file changes and reruns the tests

Debugging

Run commands with DEBUG=bumper environment variable. To see debug messages from the unit tests, run with DEBUG=test environment variable.

Package Sidebar

Install

npm i @cypress/bumpercar

Weekly Downloads

17

Version

2.0.12

License

MIT

Unpacked Size

19.2 kB

Total Files

14

Last publish

Collaborators

  • cypress-npm-publisher