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
388009ab
Unverified
Commit
388009ab
authored
Nov 12, 2018
by
Jeremy Morrell
Committed by
GitHub
Nov 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix yarn cache tests that are breaking CI (#586)
parent
f6d55d63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
run
test/run
+7
-2
No files found.
test/run
View file @
388009ab
...
@@ -118,9 +118,14 @@ testYarnCacheDirectory() {
...
@@ -118,9 +118,14 @@ testYarnCacheDirectory() {
echo
"
${
cache_dir
}
/yarn"
>
"
$env_dir
"
/YARN_CACHE_FOLDER
echo
"
${
cache_dir
}
/yarn"
>
"
$env_dir
"
/YARN_CACHE_FOLDER
compile
"yarn"
$cache
$env_dir
compile
"yarn"
$cache
$env_dir
# These will be created if yarn is using the directory for its cache
# These will be created if yarn is using the directory for its cache
assertDirectoryExists
${
cache_dir
}
/yarn
assertDirectoryExists
${
cache_dir
}
/yarn
assertDirectoryExists
${
cache_dir
}
/yarn/v3
# yarn frequently bumps the version number used in its cache
assertFileExists
${
cache_dir
}
/yarn/v3/npm-lodash-4.16.4-01ce306b9bad1319f2a5528674f88297aeb70127
# so use a wildcard here to prevent frequent CI failures
ls
${
cache_dir
}
/yarn/v
*
/npm-lodash-4.16.4-01ce306b9bad1319f2a5528674f88297aeb70127
# assert that the above ls command exited successfully, which only happens if the file exists
assertEquals
"0"
"
$?
"
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