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
d468ecdc
Commit
d468ecdc
authored
Jul 18, 2017
by
Jeremy Morrell
Committed by
GitHub
Jul 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into cache-signature-stack
parents
179d58f5
f935611d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
.travis.yml
.travis.yml
+5
-2
CHANGELOG.md
CHANGELOG.md
+2
-0
cache.sh
lib/cache.sh
+2
-0
run
test/run
+1
-1
No files found.
.travis.yml
View file @
d468ecdc
...
@@ -2,5 +2,8 @@ language: bash
...
@@ -2,5 +2,8 @@ language: bash
sudo
:
required
sudo
:
required
services
:
services
:
-
docker
-
docker
install
:
docker pull heroku/cedar:14
env
:
script
:
make test
-
STACK=heroku-16
-
STACK=cedar-14
install
:
docker pull "heroku/${STACK/-/:}"
script
:
make test-${STACK}
CHANGELOG.md
View file @
d468ecdc
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
## Master
## Master
-
Add
`$STACK`
to the cache signature (#445)
-
Add
`$STACK`
to the cache signature (#445)
-
Log output now differentiates between an empty cache and a new cache signature
## v106 (2017-06-19)
## v106 (2017-06-19)
...
...
lib/cache.sh
View file @
d468ecdc
...
@@ -19,6 +19,8 @@ load_signature() {
...
@@ -19,6 +19,8 @@ load_signature() {
get_cache_status
()
{
get_cache_status
()
{
if
!
${
NODE_MODULES_CACHE
:-
true
}
;
then
if
!
${
NODE_MODULES_CACHE
:-
true
}
;
then
echo
"disabled"
echo
"disabled"
elif
!
test
-d
"
${
CACHE_DIR
}
/node/"
;
then
echo
"not-found"
elif
[
"
$(
create_signature
)
"
!=
"
$(
load_signature
)
"
]
;
then
elif
[
"
$(
create_signature
)
"
!=
"
$(
load_signature
)
"
]
;
then
echo
"new-signature"
echo
"new-signature"
else
else
...
...
test/run
View file @
d468ecdc
...
@@ -54,7 +54,7 @@ testBuildWithCache() {
...
@@ -54,7 +54,7 @@ testBuildWithCache() {
cache
=
$(
mktmpdir
)
cache
=
$(
mktmpdir
)
compile
"stable-node"
$cache
compile
"stable-node"
$cache
assertCaptured
"Skipping cache restore (n
ew-signature
"
assertCaptured
"Skipping cache restore (n
ot-found)
"
assertEquals
"1"
"
$(
ls
-1
$cache
/node/node_modules |
grep
hashish |
wc
-l
|
tr
-d
' '
)
"
assertEquals
"1"
"
$(
ls
-1
$cache
/node/node_modules |
grep
hashish |
wc
-l
|
tr
-d
' '
)
"
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