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
d0f10ee9
Commit
d0f10ee9
authored
Oct 23, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test and implementation for compiling the same directory multiple times
parent
c3354498
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
binaries.sh
lib/binaries.sh
+1
-0
run
test/run
+23
-0
No files found.
lib/binaries.sh
View file @
d0f10ee9
...
@@ -20,6 +20,7 @@ install_nodejs() {
...
@@ -20,6 +20,7 @@ install_nodejs() {
local
download_url
=
"http://s3pository.heroku.com/node/v
$version
/node-v
$version
-
$os
-
$cpu
.tar.gz"
local
download_url
=
"http://s3pository.heroku.com/node/v
$version
/node-v
$version
-
$os
-
$cpu
.tar.gz"
curl
"
$download_url
"
--silent
--fail
-o
/tmp/node.tar.gz
||
(
echo
"Unable to download node
$version
; does it exist?"
&&
false
)
curl
"
$download_url
"
--silent
--fail
-o
/tmp/node.tar.gz
||
(
echo
"Unable to download node
$version
; does it exist?"
&&
false
)
tar
xzf /tmp/node.tar.gz
-C
/tmp
tar
xzf /tmp/node.tar.gz
-C
/tmp
rm
-rf
$dir
/
*
mv
/tmp/node-v
$version
-
$os
-
$cpu
/
*
$dir
mv
/tmp/node-v
$version
-
$os
-
$cpu
/
*
$dir
chmod
+x
$dir
/bin/
*
chmod
+x
$dir
/bin/
*
}
}
...
...
test/run
View file @
d0f10ee9
#!/usr/bin/env bash
#!/usr/bin/env bash
# See README.md for info on running these tests.
# See README.md for info on running these tests.
testMultipleRuns
()
{
local
compileDir
=
$(
mktmpdir
)
local
cacheDir
=
$(
mktmpdir
)
cp
-a
test
/fixtures/stable-node/.
${
compileDir
}
compileDir
"
$compileDir
"
"
$cacheDir
"
assertCapturedSuccess
compileDir
"
$compileDir
"
"
$cacheDir
"
assertCapturedSuccess
}
testDisableCache
()
{
testDisableCache
()
{
cache
=
$(
mktmpdir
)
cache
=
$(
mktmpdir
)
env_dir
=
$(
mktmpdir
)
env_dir
=
$(
mktmpdir
)
...
@@ -497,6 +508,18 @@ compile() {
...
@@ -497,6 +508,18 @@ compile() {
capture
${
bp_dir
}
/bin/compile
${
compile_dir
}
${
2
:-$(
mktmpdir
)}
$3
capture
${
bp_dir
}
/bin/compile
${
compile_dir
}
${
2
:-$(
mktmpdir
)}
$3
}
}
compileDir
()
{
default_process_types_cleanup
local
bp_dir
=
$(
mktmpdir
)
local
compile_dir
=
${
1
:-$(
mktmpdir
)}
local
cache_dir
=
${
2
:-$(
mktmpdir
)}
local
env_dir
=
$3
cp
-a
$(
pwd
)
/
*
${
bp_dir
}
capture
${
bp_dir
}
/bin/compile
${
compile_dir
}
${
cache_dir
}
${
env_dir
}
}
release
()
{
release
()
{
bp_dir
=
$(
mktmpdir
)
bp_dir
=
$(
mktmpdir
)
cp
-a
$(
pwd
)
/
*
${
bp_dir
}
cp
-a
$(
pwd
)
/
*
${
bp_dir
}
...
...
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