summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Guo <robertguo@me.com>2019-05-06 21:49:38 -0400
committerRobert Guo <robertguo@me.com>2019-05-06 21:50:40 -0400
commita7b02ee0055beb9d848c0c15cae19a7149f1767a (patch)
tree990a37ea364e387ef7c7cba85d2dfa47c3ad34e9
parent1a379e6d17fc344be69137cc16e8811f302af08c (diff)
downloadmongo-a7b02ee0055beb9d848c0c15cae19a7149f1767a.tar.gz
SERVER-40922 npm install before running the fuzzer
(cherry picked from commit 1a91e889478eacc7f5c63d93a0c68242719aca08)
-rw-r--r--etc/evergreen.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index af6616121bb..7d4c2b8176d 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -763,6 +763,7 @@ functions:
git clone git@github.com:10gen/jstestfuzz.git
cp mongodb*/bin/mongod .
+
- command: shell.exec
params:
working_dir: src
@@ -772,6 +773,27 @@ functions:
git clone --depth 1 git@github.com:10gen/mongo-enterprise-modules.git jstests/enterprise_tests
git clone --depth 1 git@github.com:10gen/QA.git jstests/qa_tests
+
+ - command: shell.exec
+ params:
+ working_dir: src/jstestfuzz
+ script: |
+ set -o errexit
+ set -o verbose
+
+ # Add node and npm binaries to PATH
+ if [ "Windows_NT" = "$OS" ]; then
+ # An "npm" directory might not have been created in %APPDATA% by the Windows installer.
+ # Work around the issue by specifying a different %APPDATA% path.
+ # See: https://github.com/nodejs/node-v0.x-archive/issues/8141
+ export APPDATA=${workdir}/npm-app-data
+ export PATH="$PATH:/cygdrive/c/Program Files (x86)/nodejs" # Windows location
+ else
+ export PATH="$PATH:/opt/node/bin"
+ fi
+
+ npm install
+
- command: shell.exec
type: test
params:
@@ -780,6 +802,7 @@ functions:
set -o errexit
set -o verbose
+ # Add node and npm binaries to PATH
if [ "Windows_NT" = "$OS" ]; then
# An "npm" directory might not have been created in %APPDATA% by the Windows installer.
# Work around the issue by specifying a different %APPDATA% path.