aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/tools/dockerfile
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-04-29 15:05:00 -0700
committerGravatar murgatroid99 <mlumish@google.com>2016-04-29 15:05:00 -0700
commit9fab4386695eb5575b943b0d1fec8141aec72ea1 (patch)
tree2ee966c506c34b5cd0ae4199d74fb571e398a337 /templates/tools/dockerfile
parent90b4a87d3ba78326d7ff523b3412684aa905670e (diff)
Made Node tests support multiple versions and set the Node default version to 4 everywhere possible
Diffstat (limited to 'templates/tools/dockerfile')
-rw-r--r--templates/tools/dockerfile/node_deps.include4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/tools/dockerfile/node_deps.include b/templates/tools/dockerfile/node_deps.include
index 7d37d67146..7855fbfee3 100644
--- a/templates/tools/dockerfile/node_deps.include
+++ b/templates/tools/dockerfile/node_deps.include
@@ -4,4 +4,8 @@
# Install nvm
RUN touch .profile
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
+# Install all versions of node that we want to test
RUN /bin/bash -l -c "nvm install 0.12 && npm config set cache /tmp/npm-cache"
+RUN /bin/bash -l -c "nvm install 4 && npm config set cache /tmp/npm-cache"
+RUN /bin/bash -l -c "nvm install 5 && npm config set cache /tmp/npm-cache"
+RUN /bin/bash -l -c "nvm alias default 4" \ No newline at end of file