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
ecc54c1e
Unverified
Commit
ecc54c1e
authored
Jan 24, 2019
by
Jeremy Morrell
Committed by
GitHub
Jan 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add rest of non-test bash to shellcheck (#610)
* Add rest of non-test bash to shellcheck
parent
fc26df7e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
nodejs.sh
ci-profile/nodejs.sh
+2
-0
ci-setup.sh
etc/ci-setup.sh
+1
-1
hatchet.sh
etc/hatchet.sh
+5
-3
publish.sh
etc/publish.sh
+1
-1
makefile
makefile
+2
-2
No files found.
ci-profile/nodejs.sh
View file @
ecc54c1e
#!/usr/bin/env bash
export
PATH
=
"
$HOME
/.heroku/node/bin:
$HOME
/.heroku/yarn/bin:
$PATH
:
$HOME
/bin:
$HOME
/node_modules/.bin"
export
NODE_HOME
=
"
$HOME
/.heroku/node"
export
NODE_ENV
=
${
NODE_ENV
:-
test
}
etc/ci-setup.sh
View file @
ecc54c1e
...
...
@@ -2,7 +2,7 @@
[
"
$CI
"
!=
"true"
]
&&
echo
"Not running on CI!"
&&
exit
1
git config
--global
user.email
${
HEROKU_API_USER
:-
"buildpack@example.com"
}
git config
--global
user.email
"
${
HEROKU_API_USER
:-
"buildpack@example.com"
}
"
git config
--global
user.name
'BuildpackTester'
cat
<<
EOF
>> ~/.ssh/config
...
...
etc/hatchet.sh
View file @
ecc54c1e
...
...
@@ -26,14 +26,16 @@ if [ -z "$HEROKU_API_KEY" ]; then
fi
if
[
-n
"
$CIRCLE_BRANCH
"
]
;
then
export
HATCHET_BUILDPACK_BRANCH
=
"
$CIRCLE_BRANCH
"
HATCHET_BUILDPACK_BRANCH
=
"
$CIRCLE_BRANCH
"
elif
[
-n
"
$TRAVIS_PULL_REQUEST_BRANCH
"
]
;
then
export
IS_RUNNING_ON_TRAVIS
=
true
export
HATCHET_BUILDPACK_BRANCH
=
"
$TRAVIS_PULL_REQUEST_BRANCH
"
HATCHET_BUILDPACK_BRANCH
=
"
$TRAVIS_PULL_REQUEST_BRANCH
"
else
export
HATCHET_BUILDPACK_BRANCH
=
$(
git name-rev HEAD 2> /dev/null |
sed
's#HEAD\ \(.*\)#\1#'
|
sed
's#tags\/##'
)
HATCHET_BUILDPACK_BRANCH
=
$(
git name-rev HEAD 2> /dev/null |
sed
's#HEAD\ \(.*\)#\1#'
|
sed
's#tags\/##'
)
fi
export
HATCHET_BUILDPACK_BRANCH
gem
install
bundler
bundle
install
...
...
etc/publish.sh
View file @
ecc54c1e
...
...
@@ -7,7 +7,7 @@ BP_NAME=${1:-"heroku/nodejs"}
curVersion
=
$(
heroku buildpacks:versions
"
$BP_NAME
"
|
awk
'FNR == 3 { print $1 }'
)
newVersion
=
"v
$((
curVersion
+
1
))
"
read
-p
"Deploy as version:
$newVersion
[y/n]? "
choice
read
-
r
-
p
"Deploy as version:
$newVersion
[y/n]? "
choice
case
"
$choice
"
in
y|Y
)
echo
""
;;
n|N
)
exit
0
;;
...
...
makefile
View file @
ecc54c1e
...
...
@@ -3,8 +3,8 @@ test: heroku-18 heroku-16 cedar-14
shellcheck
:
@
shellcheck
-x
bin/compile bin/detect bin/release bin/test bin/test-compile
@
shellcheck
-x
lib/
**
@
echo
TODO shellcheck
-x
ci-profile/
**
/
*
.sh
@
echo
TODO shellcheck
-x
etc/
**
/
*
.sh
@
shellcheck
-x
ci-profile/
**
@
shellcheck
-x
etc/
**
heroku-18
:
@
echo
"Running tests in docker (heroku-18)..."
...
...
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