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

otcshare / iotivity-node / 709
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: 1.3.1-0
DEFAULT BRANCH: master
Ran 24 Nov 2016 01:02PM UTC
Jobs 1
Files 15
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

pending completion
709

push

travis-ci

gabrielschulhof
Build: Clean up development files in production and install self as dep

Distinguish between two use cases:
* Development - i.e., clone the repo, run npm install and then test and debug
* Production - install this package as a dependency of another package

In the development use case, we leave the source files, test scripts, and
everything else lying around after npm install completes.

In the production case, we remove absolutely everything that is not needed for
running the addon - tests, source files, headers, and build scripts.

The reason this package must install itself as if it were a dependency of this
repo is to run the test suites on the built-for-production package. This is
done on the CI server, where the first step is npm pack followed by
npm install *tgz. This will cause a built-for-production package to be
installed under node_modules/. The rest of the dependencies are then installed
with npm install --ignore-scripts, and the test suites load iotivity-node via a
simple require( "iotivity-node" ) or require( "iotivity-node/lowlevel" ) - just
as they would in production.

Now, since the tests have been modified to refer to this package as if it were
a dependency, in the development use case, we must populate
node_modules/iotivity-node with files index.js and lowlevel.js that return
whatever their namesakes in the repo root return. Node.js-specific, platform-
agnostic symlinks, if you will.

Fixes gh-88
Fixes gh-89

Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>

589 of 679 relevant lines covered (86.75%)

47.94 hits per line

Jobs
ID Job ID Ran Files Coverage
12 709.12 (NODE_VERSION=4.5 TEST_SCRIPT=publish-coverage) 24 Nov 2016 01:02PM UTC 0
86.75
Travis Job 709.12
Source Files on build 709
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #709
  • a3fd0772 on github
  • Prev Build on maintenance (#698)
  • Next Build on maintenance (#711)
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