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

pantsbuild / pants / 6527
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: csb/new-lockfile-ignore
DEFAULT BRANCH: main
Ran 30 Aug 2015 08:32PM UTC
Jobs 10
Files 381
Run time 9min
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
6527

push

travis-ci

jsirois
Initial support for `resolve.npm`.

This is pants implementing `npm install` for node projects modeled in
pants.  The driving concern is primary control by pants of Node.js
packages via BUILD files, and this necessitates generating package.json
files under `.pants.d/` to describe dependencies (and later more) to
`npm` so it can resolve both local and remote dependencies.  A second
fallout is copying pants controlled node module sourcecode up into
`.pants.d/` since `node` has a documented behavior of resolving against
`realpath`[1], foiling any attempt to use symlinks.

The basic targets needed to support `resolve.npm` - aka `npm install`
are added along with basic tests for the functionality.

[1] https://nodejs.org/api/modules.html#modules_addenda_package_manager_tips

Testing Done:
I manually confirmed that with the NpmResolve execution of `npm dedupe`
commented out, the dedupe portion of the
`NpmResolveTest.test_resolve_simple_graph` test failed like so:
```console
E     AssertionError: Expected to find exactly 1 de-duped `typ` package, but found these:
E     	node_modules/typ/package.json
E     	node_modules/util/node_modules/typ/package.json
```

CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/77852199

Bugs closed: 2073, 2087

Reviewed at https://rbcommons.com/s/twitter/r/2723/

16968 of 22682 relevant lines covered (74.81%)

1.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6527.1 (CI_FLAGS="-cjlpn 'Various pants self checks'") 30 Aug 2015 08:34PM UTC 0
Travis Job 6527.1
2 6527.2 (CI_FLAGS="-fkmsrcn -u 0/2 'Unit tests for pants and pants-plugins - shard 1'") 30 Aug 2015 08:34PM UTC 0
70.57
Travis Job 6527.2
3 6527.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'") 30 Aug 2015 08:34PM UTC 0
70.2
Travis Job 6527.3
4 6527.4 (CI_FLAGS="-fkmsrcjlp 'Python contrib tests'") 30 Aug 2015 08:32PM UTC 0
Travis Job 6527.4
5 6527.5 (CI_FLAGS="-fkmsrjlpn -i 0/6 'Python integration tests for pants - shard 1'") 30 Aug 2015 08:33PM UTC 0
Travis Job 6527.5
6 6527.6 (CI_FLAGS="-fkmsrjlpn -i 1/6 'Python integration tests for pants - shard 2'") 30 Aug 2015 08:39PM UTC 0
Travis Job 6527.6
7 6527.7 (CI_FLAGS="-fkmsrjlpn -i 2/6 'Python integration tests for pants - shard 3'") 30 Aug 2015 08:41PM UTC 0
Travis Job 6527.7
8 6527.8 (CI_FLAGS="-fkmsrjlpn -i 3/6 'Python integration tests for pants - shard 4'") 30 Aug 2015 08:39PM UTC 0
Travis Job 6527.8
9 6527.9 (CI_FLAGS="-fkmsrjlpn -i 4/6 'Python integration tests for pants - shard 5'") 30 Aug 2015 08:39PM UTC 0
Travis Job 6527.9
10 6527.10 (CI_FLAGS="-fkmsrjlpn -i 5/6 'Python integration tests for pants - shard 6'") 30 Aug 2015 08:38PM UTC 0
Travis Job 6527.10
Source Files on build 6527
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6527
  • d0a701dc on github
  • Prev Build on master (#6521)
  • Next Build on master (#6535)
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