https://github.com/james1x0/expired-sauce
A script that exits with 1 or 0 based on sauce labs overage.
https://github.com/james1x0/expired-sauce
Last synced: 3 months ago
JSON representation
A script that exits with 1 or 0 based on sauce labs overage.
- Host: GitHub
- URL: https://github.com/james1x0/expired-sauce
- Owner: James1x0
- License: mit
- Created: 2018-10-15T15:49:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-15T16:27:50.000Z (over 6 years ago)
- Last Synced: 2025-02-23T06:01:39.747Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Expired Sauce
I don't know if I'm the only one, but I don't want overage minutes billed from Sauce Labs. I also don't want to manually turn off CI builds after manually checking usage. This script fixes that.
### Installation
```
$ yarn global add expired-sauce
```### Usage
```
$ SAUCE_USERNAME="something" SAUCE_ACCESS_KEY="abc" USAGE_THRESHOLD=20 expiredsauce
````SAUCE_USERNAME` & `SAUCE_ACCESS_KEY` are required environment variables, whereas `USAGE_THRESHOLD` defaults to 20.
`USAGE_THRESHOLD` is used to compare minutes left on your account. If you have 50 minutes left on your account and your `USAGE_THRESHOLD` is set to `55`, this script will return a `1` exit code (failing).