An iOS 14 widget for travis-ci.com built with Scriptable which display recents build states for a given repository.
The Travis widget requires a few things to properly work:
- Scriptable, obviously (v1.5.0 or later)
- A Travis API token for travis-ci.com
- The repo slug (owner/name) of the repository you want to view in your widget
- Get the Travis CLI client
- Login:
travis login --com
- Retrieve a token:
travis token
- If not yet done, install Scriptable
- Copy the source code of
travis.js
(click "raw" on the upper right) - Open Scriptable
- Add a new script and paste the copied source
- Give the script a descriptive name (e.g. Travis) and save it ("Done")
- Add a new "Scriptable" widget to your homescreen
- While still in wiggle mode, tap the widget to configure it
- Choose your saved script for "Script"
- Select "Run Script" for "When Interacting"
- As parameter, add the following JSON data, adjusted to your setup:
{"repository": "repo_owner/repo_name", "token": "your_travis_api_token"}