Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
ad1fa65a
Commit
ad1fa65a
authored
Feb 24, 2017
by
Hunter Loftis
Committed by
GitHub
Feb 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #376 from heroku/yarn-ci
run tests with yarn if available
parents
1e27aeb1
b7a8ca86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
test
bin/test
+6
-1
run
test/run
+3
-3
No files found.
bin/test
View file @
ad1fa65a
#!/usr/bin/env bash
#!/usr/bin/env bash
cd
"
$1
"
&&
npm
test
BUILD_DIR
=
${
1
:-}
if
yarn
--version
>
/dev/null 2>&1
;
then
cd
"
$BUILD_DIR
"
&&
yarn
test
else
cd
"
$BUILD_DIR
"
&&
npm
test
fi
test/run
View file @
ad1fa65a
...
@@ -398,7 +398,7 @@ testDangerousRangeStar() {
...
@@ -398,7 +398,7 @@ testDangerousRangeStar() {
compile
"dangerous-range-star"
compile
"dangerous-range-star"
assertCaptured
"Dangerous semver range"
assertCaptured
"Dangerous semver range"
assertCaptured
"Resolving node version * via semver.io"
assertCaptured
"Resolving node version * via semver.io"
assertCaptured
"Downloading and installing node
6
."
assertCaptured
"Downloading and installing node
7
."
assertCapturedError
assertCapturedError
}
}
...
@@ -406,14 +406,14 @@ testDangerousRangeGreaterThan() {
...
@@ -406,14 +406,14 @@ testDangerousRangeGreaterThan() {
compile
"dangerous-range-greater-than"
compile
"dangerous-range-greater-than"
assertCaptured
"Dangerous semver range"
assertCaptured
"Dangerous semver range"
assertCaptured
"Resolving node version >0.4 via semver.io"
assertCaptured
"Resolving node version >0.4 via semver.io"
assertCaptured
"Downloading and installing node
6
."
assertCaptured
"Downloading and installing node
7
."
assertCapturedError
assertCapturedError
}
}
testRangeWithSpace
()
{
testRangeWithSpace
()
{
compile
"range-with-space"
compile
"range-with-space"
assertCaptured
"Resolving node version >= 0.8.x via semver.io"
assertCaptured
"Resolving node version >= 0.8.x via semver.io"
assertCaptured
"Downloading and installing node
6
."
assertCaptured
"Downloading and installing node
7
."
assertCapturedSuccess
assertCapturedSuccess
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment