{"id":13487340,"url":"https://github.com/DeepSpace2/powerline-travis-ci","last_synced_at":"2025-03-27T21:32:28.436Z","repository":{"id":57454386,"uuid":"310647521","full_name":"DeepSpace2/powerline-travis-ci","owner":"DeepSpace2","description":"A Powerline segment for fetching and showing the latest travis-ci build state","archived":false,"fork":false,"pushed_at":"2020-11-06T16:27:51.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T19:47:20.043Z","etag":null,"topics":["cli","powerline","segment","shell","terminal","travis","travis-ci"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeepSpace2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-06T16:21:30.000Z","updated_at":"2021-09-15T15:13:42.000Z","dependencies_parsed_at":"2022-08-29T15:00:10.365Z","dependency_job_id":null,"html_url":"https://github.com/DeepSpace2/powerline-travis-ci","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeepSpace2%2Fpowerline-travis-ci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeepSpace2%2Fpowerline-travis-ci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeepSpace2%2Fpowerline-travis-ci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeepSpace2%2Fpowerline-travis-ci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeepSpace2","download_url":"https://codeload.github.com/DeepSpace2/powerline-travis-ci/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245927451,"owners_count":20695236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","powerline","segment","shell","terminal","travis","travis-ci"],"created_at":"2024-07-31T18:00:57.905Z","updated_at":"2025-03-27T21:32:28.051Z","avatar_url":"https://github.com/DeepSpace2.png","language":"Python","funding_links":[],"categories":["Segments"],"sub_categories":[],"readme":"[![PyPI](https://img.shields.io/pypi/v/powerline-travis-ci?color=blue\u0026logo=python\u0026logoColor=green\u0026style=plastic)](https://pypi.org/project/powerline-travis-ci/)\n[![Downloads](http://pepy.tech/badge/powerline-travis-ci)](http://pepy.tech/count/powerline-travis-ci)\n\n# powerline-travis-ci\n\nA light-hearted [Powerline](https://github.com/powerline/powerline) segment for fetching and showing the status\nof the last build on travis. The segment will only be shown if the current directory contains a `.travis.yml` file.\n\n**Keep in mind that powerline-travis-ci is in early, rapid development stage so its API/configuration format may change.**\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Activation](#activation)\n- [Configuration and Customization](#configuration-and-customization)\n- [Examples](#examples)\n- [Changelog](#changelog)\n\n## Requirements\n\n - [Powerline](https://github.com/powerline/powerline)\n - A [travis-ci.com](https://travis-ci.com) API token\n \n## Installation\n \n```\npip install powerline-travis-ci\n```\n\n## Activation\n \nThe very minimum required to activate the segment is to add the following to your theme JSON:\n \n```json\n{\n   \"function\": \"powerline_travis_ci.latest_build_state\",\n   \"args\": {\n        \"token\": API_TOKEN,\n        \"username\": TRAVIS_USERNAME\n    }\n}\n```\n \nand the following to your colorscheme JSON (the colors can be customized):\n \n```json\n\"groups\": {\n      \"latest_travis_build_state\": {\n          \"fg\": \"gray9\",\n          \"bg\": \"gray2\",\n          \"attrs\": []\n    }\n}\n```\n \n## Configuration and Customization\n \nThe following optional `args` are available:\n  \n| Argument | Type | Description | Default\n| --- | --- | --- | --- |\n| `canceled_text` | string | Text or icon to show for the `canceled` state | `\"Canceled\"` |\n| `created_text` | string | Text or icon to show for the `created` state | `\"Created\"` |\n| `errored_text` | string | Text or icon to show for the `errored` state | `\"Errored\"` | \n| `failed_text` | string | Text or icon to show for the `failed` state | `\"Failed\"` |\n| `for_current_branch` | boolean | If `true` the state shown is the state of the latest build of the checked out git branch | `false` |\n| `git_path` | string | Only used if `for_current_branch` is `true` | `\"git\"` |\n| `passed_text` | string | Text or icon to show for the `passed` state | `\"Passed\"` |\n| `post_state_text` | string | Text or icon to append the state.\u003cbr\u003eIf contains `\u003ctravis_url\u003e` a clickable link to travis will be shown (if the supported by your terminal) | `\"\"` |\n| `pre_state_text` | string | Text or icon to prepend before the state.\u003cbr\u003eIf contains `\u003ctravis_url\u003e` a clickable link to travis will be shown (if the supported by your terminal) | `\"\"` |\n| `received_text` | string | Text or icon to show for the `received` state | `\"Received\"` |\n| `show_state_branch` | boolean | If `true` the name of the git branch will be shown along the state | `false` |\n| `started_text` | string | Text or icon to show for the `started` state | `\"Started\"` |\n\n### Highlight Groups\n\nIn addition to the generic `latest_travis_build_state` group, each state can be customized independently with highlight group `latest_travis_build_state_{state}`.\n\nFor example,\n\n```json\n\"latest_travis_build_state_passed\": {\n    \"fg\": \"white\",\n    \"bg\": \"darkestgreen\",\n    \"attrs\": []\n}\n```\n\nIf a specific state does not have a highlight group then the style of `\"latest_travis_build_state\"` group will be used.\n\n## Examples\n\n##### Default configuration\n\n![default](readme-images/default.png?raw=true)\n  \n##### Customized text and highlight groups for \"passed\" and \"failed\" states\n\n```json\n{\n  \"function\": \"powerline_travis_ci.latest_build_state\",\n  \"args\": {\n      \"token\": API_TOKEN,\n      \"username\": TRAVIS_USERNAME,\n      \"passed_text\": \"✔\",\n      \"failed_text\": \"❌\",\n      \"pre_state_text\": \"Travis: \"\n  }\n}\n```\n  \n```json\n\"latest_travis_build_state\": {\n  \"fg\": \"white\",\n  \"bg\": \"gray2\",\n  \"attrs\": []\n},\n\"latest_travis_build_state_passed\": {\n  \"fg\": \"white\",\n  \"bg\": \"darkestgreen\",\n  \"attrs\": []\n},\n\"latest_travis_build_state_failed\": {\n  \"fg\": \"white\",\n  \"bg\": \"darkestred\",\n  \"attrs\": []\n}\n```\n  \n![customized-passed](readme-images/customized-passed.png?raw=true)\n  \n![customized-faild](readme-images/customized-failed.png?raw=true)\n\n## Changelog\n\n### 0.1 - Nov. 6 2020\nInitial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDeepSpace2%2Fpowerline-travis-ci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDeepSpace2%2Fpowerline-travis-ci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDeepSpace2%2Fpowerline-travis-ci/lists"}