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

benmvp / bart-salmon / 176 / 1
52%
master: 52%

Build:
DEFAULT BRANCH: master
Ran 23 Nov 2019 07:50PM UTC
Files 32
Run time 1s
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

23 Nov 2019 07:48PM UTC coverage: 57.487%. Remained the same
176.1

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

Source Files on job 176.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 150
  • Travis Job 176.1
  • 88ddada3 on github
  • Prev Job for on master (#172.1)
  • Next Job for on master (#179.1)
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