Giter VIP home page Giter VIP logo

travis-pls's Introduction

travis-pls Build Status

travis-pls

A little script for keeping very long running jobs online in Travis CI.

Use-Case

I run some complicated Packer builds to build AMIs in EC2. It can often take more than 10 minutes for Amazon to assemble a simple AMI image. I also run Packer builds to test changes in pull requests and then use custom logic to tear down the built AMIs until merged to develop or master.

This script allows my Packer Travis builds to run as long as necessary.

The Problem

As described in Travis CI documentation, if a Travis CI build goes longer than 10 minutes without emitting any output, the build is killed by Travis. "It's okay," Travis docs tell us, "you can use the travis_wait command for long running builds."

Here are a few problems with travis_wait:

  • It displays no output at all until the task has completed, and for long running builds, this is a deal breaker. If one test case failed pretty early on in your build, you'll have to wait until the end of the build to see what went wrong ๐Ÿ‘Ž
  • It isn't available in your deploy scripts, which still have the 10 minute timeout.

The Solution

A janky Python script which executes any command and arguments passed to it, sending output directly to standard output and error, sending out the following message (by default) every nine minutes to rustle Travis' jimmies:

๐Ÿ–• travis pls ๐Ÿ–•

It works. Your builds will now stream your output back to you and will never, ever time out.

travis-pls's People

Contributors

naftulikay avatar

Watchers

 avatar  avatar

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.