Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crazy-max/travis-wait-enhanced
Prevent Travis CI from thinking a long-running process has stalled
https://github.com/crazy-max/travis-wait-enhanced
golang travis-ci travis-wait
Last synced: 3 months ago
JSON representation
Prevent Travis CI from thinking a long-running process has stalled
- Host: GitHub
- URL: https://github.com/crazy-max/travis-wait-enhanced
- Owner: crazy-max
- License: mit
- Archived: true
- Created: 2019-08-02T12:00:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-09T10:17:52.000Z (over 3 years ago)
- Last Synced: 2024-06-19T03:13:19.853Z (5 months ago)
- Topics: golang, travis-ci, travis-wait
- Language: Go
- Homepage:
- Size: 98.6 KB
- Stars: 17
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
## :warning: Abandoned project
This project is not maintained anymore and is abandoned. Feel free to fork and make your own changes if needed.
Thanks to everyone for their valuable feedback and contributions.
## About
**travis-wait-enhanced** :alarm_clock: is a CLI application written in [Go](https://golang.org/) to replace the
existing [travis_wait](https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received)
bash function (with some enhancements) to prevent [Travis CI](https://travis-ci.com/) from thinking a long-running
process has stalled.## Features
* Custom timeout duration
* Custom interval duration at which to print keep-alive messages
* Custom formatting options
* Print command output to stdout/stderr## Download
travis-wait-enhanced binaries are available in [releases](https://github.com/crazy-max/travis-wait-enhanced/releases)
page.Choose the archive matching the destination platform and extract travis-wait-enhanced:
```
$ cd /opt
$ wget -qO- https://github.com/crazy-max/travis-wait-enhanced/releases/download/v1.2.0/travis-wait-enhanced_1.2.0_linux_x86_64.tar.gz | tar -zxvf - travis-wait-enhanced
```After getting the binary, it can be tested with `./travis-wait-enhanced --help` or moved to a permanent location.
```
$ ./travis-wait-enhanced --help
Usage: travis-wait-enhanced ...Prevent Travis CI from thinking a long-running process has stalled. More info:
https://github.com/crazy-max/travis-wait-enhancedArguments:
... Command to execute.Flags:
--help Show context-sensitive help.
--version
--timeout=20m Timeout for this command.
--interval=1m Interval at which to print keep-alive messages.
--print-name Print the name of this tool to identify keep-alive messages.
--print-string="Still running..."
Keep-alive message printed in each interval.
--print-timestamp Print the current timestamp after each keep-alive message.
--print-newline Print a newline character after each keep-alive message.
```## Usage
`travis-wait-enhanced [] `
If your command contains flags (e.g. `mvn -V install -Pmy-profile`) then use `--` to indicate the end of
the travis-wait-enhanced flags to avoid parsing errors. For example```
travis-wait-enhanced --interval=1m --timeout=20m -- mvn -V clean install -Prun-its
```To use travis-wait-enhanced in your `.travis.yml` add :
```yml
before_install:
# linux
- |
wget -qO- "https://github.com/crazy-max/travis-wait-enhanced/releases/download/v1.2.0/travis-wait-enhanced_1.2.0_linux_x86_64.tar.gz" | tar -zxvf - travis-wait-enhanced
mv travis-wait-enhanced /home/travis/bin/
travis-wait-enhanced --version
# windows
- |
curl -LfsS -o /tmp/travis-wait-enhanced.zip "https://github.com/crazy-max/travis-wait-enhanced/releases/download/v1.2.0/travis-wait-enhanced_1.2.0_windows_x86_64.zip"
7z x /tmp/travis-wait-enhanced.zip -y -o/usr/bin/ travis-wait-enhanced.exe -r
travis-wait-enhanced --version
```## How can I help?
All kinds of contributions are welcome :raised_hands:! The most basic way to show your support is to star :star2:
the project, or to raise issues :speech_balloon: You can also support this project by
[**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max) :clap: or by making a
[Paypal donation](https://www.paypal.me/crazyws) to ensure this journey continues indefinitely! :rocket:Thanks again for your support, it is much appreciated! :pray:
## License
MIT. See `LICENSE` for more details.