/scriptable-travis-widget

An iOS 14 widget for @travis-ci built with https://scriptable.app/

Primary LanguageJavaScriptMIT LicenseMIT

scriptable-travis-widget

An iOS 14 widget for travis-ci.com built with Scriptable which display recents build states for a given repository.

Small Widget

Medium Widget

Large Widget

Installation

The Travis widget requires a few things to properly work:

  1. Scriptable, obviously (v1.5.0 or later)
  2. A Travis API token for travis-ci.com
  3. The repo slug (owner/name) of the repository you want to view in your widget

Travis

Scriptable

  • 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"}