travis-wait-enhanced

module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2019 License: MIT

README

GitHub release Total downloads Build Status Go Report Code Quality
Support me on Patreon Donate Paypal

About

travis-wait-enhanced ⏰ is a CLI application written in Go to replace the existing travis_wait bash function (with some enhancements) to prevent Travis CI from thinking a long-running process has stalled.

Features

  • Custom timeout duration
  • Custom interval duration at which to print keep-alive messages
  • Print command output to stdout/stderr

Download

travis-wait-enhanced binaries are available in 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/v0.2.0/travis-wait-enhanced_0.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 [<flags>] <command>...

Prevent Travis CI from thinking a long-running process has stalled. More info:
https://github.com/crazy-max/travis-wait-enhanced

Flags:
  --help         Show context-sensitive help (also try --help-long and
                 --help-man).
  --timeout=20m  Timeout for this command.
  --interval=1m  Interval at which to print keep-alive messages.
  --version      Show application version.

Args:
  <command>  Command to execute.

Usage

travis-wait-enhanced [<flags>] <command>

  • --help : Show help text and exit. Optional.
  • --version : Show version and exit. Optional.
  • --timeout <duration> : Timeout for this command. Optional. (default: 20m).
  • --interval <duration> : Interval at which to print keep-alive messages. Optional. (default: 1m).
  • <command> : The command to run.

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 :

before_install:
  # linux
  - |
    wget -qO- "https://github.com/crazy-max/travis-wait-enhanced/releases/download/v0.2.0/travis-wait-enhanced_0.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/v0.2.0/travis-wait-enhanced_0.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 🙌!
The most basic way to show your support is to star 🌟 the project, or to raise issues 💬
But we're not gonna lie to each other, I'd rather you buy me a beer or two 🍻!

Support me on Patreon Paypal Donate

License

MIT. See LICENSE for more details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL