Get your things square with CircleCI!
This is a small tool which allows you to browse build logs from CircleCI from
your terminal.
It uses your CircleCI CLI config (~/.circleci/cli.yml
) to get information
about you, such as your token.
Yes, it's expected that you have a working CircleCI CLI configured. Sorry! But you should have anyway :).
NOTE: You can add additional field to specify your default project, e.g.
project: github/wurbanski/circle-tui
.
If you don't want to give a lot of thought into running this, use docker!
docker run -it -v ~/.circleci/cli.yml:/app/cli.yml wurbanski/circle-tui:latest --config /app/cli.yml
circle-tui requires python 3 and was tested on python 3.6 and 3.7. You might require development tools and python 3 development headers on your machine.
Steps:
- Create virtualenv with python 3 using your preferred method, e.g.
mkvirtualenv -p $(which python 3) circle-tui
- Activate virtualenv and install requried packages:
pip install -r requirements.txt
- Run app:
python circle-tui.py
usage: circle-tui.py [-h] [--config CONFIG] [--project PROJECT]
[--build_num BUILD_NUM] [--step STEP] [--non_interactive]
TUI/Log viewer for CircleCI
optional arguments:
-h, --help show this help message and exit
--config CONFIG Location of config file
--project PROJECT Project name in format: <vcs>/<username>/<reponame>
--build_num BUILD_NUM
Build number
--step STEP Steps
--non_interactive Use non-interactive mode - just print the logs,
requires all other parameters