-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add npmRegistry as first class citizen node config parameter
- Loading branch information
1 parent
3052d9b
commit 6952df9
Showing
11 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ cache: | |
- $HOME/.gradle | ||
|
||
jdk: | ||
- oraclejdk8 | ||
- openjdk8 | ||
|
||
script: | ||
- ./gradlew ci --stacktrace | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ class Variant | |
|
||
def String npmExec | ||
|
||
def String npmRegistry | ||
|
||
def File npmDir | ||
|
||
def File npmBinDir | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ class VariantBuilderTest | |
def ext = new NodeExtension(project) | ||
ext.download = true | ||
ext.version = '0.11.1' | ||
ext.npmRegistry = 'http://myregistry.npm.com' | ||
ext.workDir = new File('.gradle/node').absoluteFile | ||
|
||
def builder = new VariantBuilder(ext) | ||
|
@@ -47,6 +48,7 @@ class VariantBuilderTest | |
variant.windows | ||
variant.exeDependency == exeDependency | ||
variant.archiveDependency == 'org.nodejs:node:0.11.1:[email protected]' | ||
variant.npmRegistry == 'http://myregistry.npm.com' | ||
|
||
variant.nodeDir.toString().endsWith(NODE_BASE_PATH + nodeDir) | ||
variant.nodeBinDir.toString().endsWith(NODE_BASE_PATH + nodeDir) | ||
|
@@ -92,7 +94,7 @@ class VariantBuilderTest | |
'x86' | 'node-v4.0.0-win-x86' | 'org.nodejs:win-x86/node:4.0.0@exe' | ||
'x86_64' | 'node-v4.0.0-win-x64' | 'org.nodejs:win-x64/node:4.0.0@exe' | ||
} | ||
@Unroll | ||
def "test variant on windows without exe (#osArch)"() | ||
{ | ||
|