Giter Site home page Giter Site logo

cisagov / travis-wait-improved Goto Github PK

View Code? Open in Web Editor NEW
8.0 7.0 3.0 335 KB

A tool to help long-running, yet reticent, processes avoid death at the hands of Traivs-CI.

License: Creative Commons Zero v1.0 Universal

Python 66.36% Shell 33.64%
travis-ci sherpa travis-wait packer

travis-wait-improved's Introduction

travis-wait-improved ๐Ÿ‘ท๐Ÿปโ€โฒ๐Ÿ‘

GitHub Build Status Coverage Status Total alerts Language grade: Python Known Vulnerabilities PyPI

travis-wait-improved is a tool to prevent Travis-CI from thinking a long-running process has stalled. It will start a child process, and pass its output through along with keep-alive messages.

For example, if you wanted to run a packer build that could take up to 30 minutes, you would add the following to your .travis.yml file:

before_deploy:
  - pip install travis-wait-improved

deploy:
  - provider: script
    script: travis-wait-improved --timeout 30m packer build packer.json

Requirements

Python versions 3.6 and above. Note that Python 2 is not supported.

Contributing

We welcome contributions! Please see here for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

travis-wait-improved's People

Contributors

dav3r avatar felddy avatar hillaryj avatar jsf9k avatar mcdonnnj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

travis-wait-improved's Issues

SyntaxError: Non-ASCII character

I'm getting this error:

Traceback (most recent call last):
  File "/home/travis/.local/bin/travis-wait-improved", line 6, in <module>
    from travis_wait_improved.sherpa import main
  File "/home/travis/.local/lib/python2.7/site-packages/travis_wait_improved/sherpa.py", line 29
SyntaxError: Non-ASCII character '\xe2' in file /home/travis/.local/lib/python2.7/site-packages/travis_wait_improved/sherpa.py on line 29, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

.travis.yml:

  ...
  before_deploy:
    - pip install travis-wait-improved --user
    deploy:
      skip_cleanup: true
      provider: script
      script: travis-wait-improved --timeout 30m bash scripts/travis_deploy.sh
      on:
        all_branches: true
  ...

When I tried without --user:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/docopt.py'
Consider using the `--user` option or check the permissions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.