summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2019-05-02 13:06:29 -0400
committerRobert Guo <robertguo@me.com>2019-05-06 21:42:50 -0400
commit9cc66cf86b7d6a2e60e0045b047e3dbd6d53d493 (patch)
tree3808cba3c1c367bc9c98b0a7d19cb54fdb987b72 /etc
parentbe1804946ebb5cf874513176a24f61c925c59648 (diff)
downloadmongo-9cc66cf86b7d6a2e60e0045b047e3dbd6d53d493.tar.gz
SERVER-40922 npm install before running the fuzzer
(cherry picked from commit 8bc6a62611724c9a9530c460034e47ed483c33f3)
Diffstat (limited to 'etc')
-rw-r--r--etc/evergreen.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 71c89f8e2fa..0c137dc762f 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -1557,6 +1557,7 @@ functions:
git clone git@github.com:10gen/jstestfuzz.git
cp mongodb*/bin/mongod .
+
- command: shell.exec
params:
working_dir: src
@@ -1566,6 +1567,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:
@@ -1574,6 +1596,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.