Commit d036bbe1 authored by Zeke Sikelianos's avatar Zeke Sikelianos

Merge pull request #45 from ddollar/diet

Always set node_version
parents ef57f219 d4e8ad92
......@@ -35,6 +35,7 @@ else
if test $default_satisfies; then
status "Using latest stable node version $stable_version"
node_version=$stable_version
else
# Find all available versions from nodejs.org/dist
args=""
......@@ -90,4 +91,4 @@ fi
# Update the PATH
status "Building runtime environment"
mkdir -p $build_dir/.profile.d
echo "export PATH=\"\$HOME/node/bin:$HOME/bin:\$HOME/node_modules/.bin:\$PATH\"" > $build_dir/.profile.d/nodejs.sh
\ No newline at end of file
echo "export PATH=\"\$HOME/node/bin:$HOME/bin:\$HOME/node_modules/.bin:\$PATH\"" > $build_dir/.profile.d/nodejs.sh
......@@ -54,6 +54,7 @@ testProfileCreated() {
testNodeModulesCached() {
cache=$(mktmpdir)
compile "node-modules-caching" $cache
assertCaptured "Caching node_modules for future builds"
assertEquals "1" "$(ls -1 $cache/node_modules/0.10.18 | wc -l)"
}
......@@ -88,4 +89,4 @@ assertFile() {
assertEquals "$1" "$(cat ${COMPILE_DIR}/$2)"
}
source ${BASE}/vendor/shunit2/shunit2
\ No newline at end of file
source ${BASE}/vendor/shunit2/shunit2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment