• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

benmvp / bart-salmon / 176
52%

Build:
DEFAULT BRANCH: master
Ran 23 Nov 2019 07:50PM UTC
Jobs 1
Files 32
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
176

push

travis-ci

web-flow
Auto generate data and store in git again (#42)

## Problem

The generation of the static data needed for the salmon algorithm is pretty flaky. The main offender is: `gen:station-routes`. Having to run it before tests and before build & deploy makes those jobs flaky.

In the beginning, the JSON files were stored in git because they became woefully out of date, especially when new stations like Antioch were added. That's why I switched to having it generated on-demand and ignored in git.

I want the data to be fresh, but it doesn't change frequently enough to be needed to be run _everytime_. We just need it to be periodically updated.

## Solution

So the solution is to leverage Github workflows & actions in order to run a cron job every night to run the data generation script. If any data changes, we'll push the new changes to `master`. As a result, running `npm test` & `npm build` no longer need to generate the data!. Running CI & Netflify should be **much** faster now.

Now that I somewhat know how Github workflows & actions work, I should be able to convert the `.travis.yml` over to a Github action as well in a follow-up PR!

98 of 168 branches covered (58.33%)

215 of 374 relevant lines covered (57.49%)

9056.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 176.1 23 Nov 2019 07:50PM UTC 0
57.49
Travis Job 176.1
Source Files on build 176
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #176
  • 88ddada3 on github
  • Prev Build on master (#172)
  • Next Build on master (#179)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc