Git Product home page Git Product logo

circlecistatus's Introduction

Build Status

circlecistatus

Get current build status of a repo on circleci from CLI

Usage with docker

curl https://raw.githubusercontent.com/kostyay/circlecistatus/master/bs.sh -o bs.sh && chmod +x ./bs.sh
echo alias bs=`pwd`/build_status.py >> ~/.bashrc
  • Follow configuration guide explained in Configuration
  • Run bs from project directory to get the current build status

Installation with source

  • Python3 is required
  • pip3 is required: sudo apt install python3-pip
  • Clone the repo git clone https://github.com/kostyay/circlecistatus.git
  • apt-get install libgit2-dev
  • pip3 install -r requirements.txt
  • Create an alias in your .bashrc: alias bs=/path/to/build_status.py.
    • bash: echo alias bs=`pwd`/build_status.py >> ~/.bashrc
    • zsh: echo alias bs=`pwd`/build_status.py >> ~/.zshrc
  • Run bs from project directory to get the current build status

Copy-Paste:

sudo apt install -y python3-pip libgit2-dev
git clone https://github.com/kostyay/circlecistatus.git
cd circlecistatus
pip3 install -r requirements.txt
echo alias bs=`pwd`/build_status.py >> ~/.bashrc

Configuration

Create a configuration file at the following path: ~/.circleci/build_status It should contain the following contents:

[build_status]
user_token = <<REPLACE>>
project_username = <<REPLACE>>
source_control = <<REPLACE>>
  • user_token - Go to CircleCI and generate a personal API token (https://circleci.com/account/api).
  • project_username - The repository you are working it. Normally when viewing builds from circle ci you can decude it from the URL. For example https://circleci.com/bb/<<project_username>>/<<project>/<<build_id>>
  • source_control - Either bitbucket or github

circlecistatus's People

Contributors

kostyay avatar kostyay-lms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

circlecistatus's Issues

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.