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
79b88795
Unverified
Commit
79b88795
authored
Sep 04, 2018
by
Jeremy Morrell
Committed by
GitHub
Sep 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow pipeing headers through the log file without indentation (#560)
parent
4f34e6bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
compile
bin/compile
+6
-6
output.sh
lib/output.sh
+6
-1
No files found.
bin/compile
View file @
79b88795
...
@@ -80,7 +80,7 @@ create_env() {
...
@@ -80,7 +80,7 @@ create_env() {
create_default_env
create_default_env
}
}
header
"Creating runtime environment"
header
"Creating runtime environment"
| output
"
$LOG_FILE
"
mkdir
-p
"
$BUILD_DIR
/.heroku/node/"
mkdir
-p
"
$BUILD_DIR
/.heroku/node/"
cd
$BUILD_DIR
cd
$BUILD_DIR
...
@@ -136,7 +136,7 @@ install_bins() {
...
@@ -136,7 +136,7 @@ install_bins() {
warn_old_npm
warn_old_npm
}
}
header
"Installing binaries"
header
"Installing binaries"
| output
"
$LOG_FILE
"
install_bins | output
"
$LOG_FILE
"
install_bins | output
"
$LOG_FILE
"
restore_cache
()
{
restore_cache
()
{
...
@@ -164,7 +164,7 @@ restore_cache() {
...
@@ -164,7 +164,7 @@ restore_cache() {
mcount
"cache.
$cache_status
"
mcount
"cache.
$cache_status
"
}
}
header
"Restoring cache"
header
"Restoring cache"
| output
"
$LOG_FILE
"
restore_cache | output
"
$LOG_FILE
"
restore_cache | output
"
$LOG_FILE
"
build_dependencies
()
{
build_dependencies
()
{
...
@@ -189,7 +189,7 @@ build_dependencies() {
...
@@ -189,7 +189,7 @@ build_dependencies() {
log_build_scripts
log_build_scripts
}
}
header
"Building dependencies"
header
"Building dependencies"
| output
"
$LOG_FILE
"
build_dependencies | output
"
$LOG_FILE
"
build_dependencies | output
"
$LOG_FILE
"
cache_build
()
{
cache_build
()
{
...
@@ -220,7 +220,7 @@ prune_devdependencies() {
...
@@ -220,7 +220,7 @@ prune_devdependencies() {
fi
fi
}
}
header
"Pruning devDependencies"
header
"Pruning devDependencies"
| output
"
$LOG_FILE
"
prune_devdependencies | output
"
$LOG_FILE
"
prune_devdependencies | output
"
$LOG_FILE
"
summarize_build
()
{
summarize_build
()
{
...
@@ -233,7 +233,7 @@ summarize_build() {
...
@@ -233,7 +233,7 @@ summarize_build() {
install_plugin
$BP_DIR
$BUILD_DIR
install_plugin
$BP_DIR
$BUILD_DIR
header
"Build succeeded!"
header
"Build succeeded!"
| output
"
$LOG_FILE
"
mcount
"compile"
mcount
"compile"
summarize_build | output
"
$LOG_FILE
"
summarize_build | output
"
$LOG_FILE
"
...
...
lib/output.sh
View file @
79b88795
...
@@ -8,7 +8,12 @@ output() {
...
@@ -8,7 +8,12 @@ output() {
while
read
LINE
;
while
read
LINE
;
do
do
echo
"
$LINE
"
||
true
# do not indent headers that are being piped through the output
if
[[
"
$LINE
"
=
~ ^-----
\>
.
*
]]
;
then
echo
"
$LINE
"
||
true
else
echo
"
$LINE
"
||
true
fi
echo
"
$LINE
"
>>
"
$logfile
"
||
true
echo
"
$LINE
"
>>
"
$logfile
"
||
true
done
done
}
}
...
...
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