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

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

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

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%)

15.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1777.1 (NPM_KEY=[secure] COVERALLS_REPO_TOKEN=[secure]) 12 Jun 2020 04:09AM UTC 0
94.24
Travis Job 1777.1
2 1777.2 (NPM_KEY=[secure] COVERALLS_REPO_TOKEN=[secure]) 12 Jun 2020 04:09AM UTC 0
94.24
Travis Job 1777.2
3 1777.3 (NPM_KEY=[secure] COVERALLS_REPO_TOKEN=[secure]) 12 Jun 2020 04:09AM UTC 0
94.24
Travis Job 1777.3
Source Files on build 1777
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1777
  • ccf32590 on github
  • Prev Build on feat/v3.0.0 (#1776)
  • Next Build on feat/v3.0.0 (#1778)
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