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

pact-foundation / pact-js / 1777 / 2
95%
master: 94%

Build:
Build:
LAST BUILD BRANCH: feat/pacts-for-verification
DEFAULT BRANCH: master
Ran 12 Jun 2020 04:09AM UTC
Files 20
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

12 Jun 2020 03:50AM UTC coverage: 94.241%. Remained the same
NPM_KEY=[secure] COVERALLS_REPO_TOKEN=[secure]

push

travis-ci

mefellows
chore: update to install binary on 'postinstall'

Scenario: we always run all examples against the current, in-flight build,
to ensure they are both relevant and correct. To avoid confusion for users,
we install the real version in package.json (rather than use a relative
import in the code) and `npm link` in builds - this means people can
copy/paste, and we are also testing the externally facing API.

The issue is, that this requires an `npm i` first before we link, which will attempt
to download the version of Pact from npmjs, which in the `install` phase will in turn
attempt to download a native binary from github for that version/os/arch - and this won't
exist for the case when we introduce a new version of Node.

The fix for these cases is to allow our builds to fallback to a Rust cargo build, but
doing the binary download on the `install` phase means the source code is not installed,
and the Cargo.yaml file and associated code doesn't exist.

Moving to `postinstall` means this should be fixed, and installing neon into the examples
means the fallback build can take place (on CI).

192 of 204 branches covered (94.12%)

540 of 573 relevant lines covered (94.24%)

5.05 hits per line

Source Files on job 1777.2 (NPM_KEY=[secure] COVERALLS_REPO_TOKEN=[secure])
  • Tree
  • List 0
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1219
  • Travis Job 1777.2
  • ccf32590 on github
  • Prev Job for NPM_KEY=[secure] COVERALLS_REPO_TOKEN=[secure] on feat/v3.0.0 (#1776.3)
  • Next Job for NPM_KEY=[secure] COVERALLS_REPO_TOKEN=[secure] on feat/v3.0.0 (#1778.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