1.0.20 • Published 7 years ago

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

Weekly downloads
13
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago