Giter VIP home page Giter VIP logo

circletest's Introduction

Circle CI

circletest

A simple script which triggers CircleCI builds and returns a status indicating success or failure.

Installation

pip install git+https://github.com/JasonBoyles/circletest

Usage

circletest [-h] [-p POLL_INTERVAL] [-t CCI_TOKEN] github_organization \
github_repo_name [git_reference]

All output is sent to stderr, so tack 2>/dev/null on the end of your command if you require silence.

return values

0 indicates success, all values >0 failure.

positional arguments

  • github_organization: the Github username or organization under which the repo lives
  • github_repo_name: the name of the repo
  • git_reference: git branch/sha/tag on which to run tests (optional, defaults to master)

flags

  • -p POLL_INTERVAL, --poll-interval POLL_INTERVAL: the number of seconds to sleep between each build status poll (optional, defaults to 10)
  • -t CCI_TOKEN, --cci-token CCI_TOKEN: a valid CircleCI access token (optional when the token is supplied in the environment variable CCI_TOKEN, if you don't already have one, tokens can be generated or downloaded from your CircleCI account settings page )
  • -e LVALUE=RVALUE: environment variables to set when the tests are run (optional, multiple accepted; add a -e for each variable to be set)

Examples

Run tests against https://github.com/mygitusername/mygitrepo, master branch, supplying the CircleCI token via environment variable:

$ export CCI_TOKEN=0123456789abcdef0123456789abcdef
$ circletest mygitusername mygitrepo

Run tests against https://github.com/mygitusername/mygitrepo, master branch, supplying the CircleCI token via the command line:

$ circletest --cci-token=0123456789abcdef0123456789abcdef mygitusername mygitrepo

You must supply a valid CircleCI token, either via the command line, or the environment variable CCI_TOKEN. Following examples assume the presence of this environment variable.

Run tests against the git branch add-new-feature:

$ circletest mygitusername mygitrepo add-new-feature

Run tests against a specific git commit d5f1459da3f2342f4e0388a4a1aa9d9c5a1b2ee7:

circletest mygitusername mygitrepo d5f1459da3f2342f4e0388a4a1aa9d9c5a1b2ee7

circletest's People

Contributors

jasonboyles avatar

Watchers

James Cloos avatar  avatar

circletest's Issues

Environment not being passed

When I try to use this against another endpoint, passing -e HEAT_URL=blah doesn't seem to work. Same for other things hot seems to look for in the environment.

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.