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

TryGhost / Ghost-CLI / 1609 / 2
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: renovate/tough-cookie-4.x
DEFAULT BRANCH: master
Ran 31 Jul 2018 09:05AM UTC
Files 66
Run time 6s
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

31 Jul 2018 09:03AM UTC coverage: 99.826% (-0.2%) from 100.0%
1609.2

push

travis-ci

web-flow
Added handling for knex-migrator being executed in Ghost 2.0 (#765)

refs #759

- We have moved the execution of knex-migrator into Ghost 2.0.0
- This commit will ensure we skip the db migration when you:
  - migrate from ^1 to ^2
  - you update from ^2 to ^2
  - when you install ^2
- Added net socket server for Ghost 2.0 (alternative to simple port polling)
- way better error handling between Ghost and the CLI
- Ghost 2.0 executes knex-migrator
  - it will turn maintenance on if migrations need to be executed
  - the handling of receiving success or failure state requires a better communication between the CLI and Ghost, because the blog stays in maintenance mode and runs the migrations in background
- Ghost will tell the CLI when it's ready by using an extension: write a socket url into the config and send the success/failure state
- this is much better than using the http socket to communicate, because
  - A) port polling connects to the http port, it's impossible to send simple messages over this transport layer
  - B) the code is much simpler, CLI opens a socket port and Ghost pushes a notification if the notification is available
  - C) we receive any error from Ghost - even if the http server wasn't started yet
- we don't communicate with Ghost, Ghost communicates with the CLI
- port polling for v1 blogs is untouched, still works as expected
- coverage has decreased a very little 0,2% - will try to add more tests when we merge the 1.9 branch into master

1137 of 1141 branches covered (99.65%)

2290 of 2294 relevant lines covered (99.83%)

5.59 hits per line

Source Files on job 1609.2
  • Tree
  • List 0
  • Changed 9
  • Source Changed 5
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1487
  • Travis Job 1609.2
  • 06bc19cf on github
  • Prev Job for on 1.9 (#1597.2)
  • Next Job for on 1.9 (#1612.2)
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