Skip to content

Commit

Permalink
Merge pull request grpc#5113 from jtattermusch/node_distribtest_fixes
Browse files Browse the repository at this point in the history
Node distribtest fixes
  • Loading branch information
murgatroid99 committed Feb 8, 2016
2 parents f06fea3 + 474ccfc commit 469e2fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 6 additions & 1 deletion test/distrib/node/run_distrib_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ set -ex

cd $(dirname $0)

nvm install $1
NODE_VERSION="$1"

# make sure nvm is available
source ~/.nvm/nvm.sh || true

nvm install $NODE_VERSION

npm install -g node-static

Expand Down
4 changes: 2 additions & 2 deletions tools/dockerfile/distribtest/node_jessie_x86/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

FROM 32bit/debian:jessie

RUN apt-get update && apt-get install -y git
RUN apt-get update && apt-get install -y curl

# Install nvm
RUN touch .profile
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
3 changes: 1 addition & 2 deletions tools/run_tests/distribtest_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ def build_jobspec(self):
'tools/dockerfile/distribtest/node_%s_%s' % (
self.docker_suffix,
self.arch),
# bash -l needed to make nvm available
'bash -l test/distrib/node/run_distrib_test.sh %s' % (
'test/distrib/node/run_distrib_test.sh %s' % (
self.node_version))
def __str__(self):
return self.name
Expand Down

0 comments on commit 469e2fd

Please sign in to comment.