1.0.20 • Published 8 years ago

remove-saucelabs-jobs-by-build v1.0.20

Weekly downloads
13
License
MIT
Repository
github
Last release
8 years ago

remove-saucelabs-jobs-by-build

Greenkeeper badge

remove-saucelabs-jobs-by-build

Comes in handy when needing to rerun a ci build for example in travis.

If the travis build fails and is rerun the saucelabs badge can generate the incorrect svg badge.

This utility removes the jobs for a given build.

Used best in combination with travis retries option

command usage

remove-saucelabs-jobs-by-build $SAUCE_USERNAME $SAUCE_ACCESS_KEY $TRAVIS_BUILD

with travis

package.json

Add remove-saucelabs-jobs-by-build to scripts for example

  "scripts": {
    "test-browsers": "remove-saucelabs-jobs-by-build && zuul test/*.js"
  }

.travis.yml

Setup number of retries for example 4.

And run tests with retry

bundler_args: --retry 4
script:
  travis_retry npm run test-browsers

If all the retries fail, then restarting the current build will still delete the saucelabs jobs for the build.

install

With npm do:

npm install remove-saucelabs-jobs-by-build

license

MIT

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.16

9 years ago

1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

11 years ago