diff options
author | Robert Guo <robert.guo@10gen.com> | 2019-05-02 13:06:29 -0400 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2019-05-03 16:42:28 -0400 |
commit | 8bc6a62611724c9a9530c460034e47ed483c33f3 (patch) | |
tree | 1f98b7739bc750f7894c052ae171da45c8d34565 /etc | |
parent | 39bb8f244b0235c517d20f132847296c6af50e3f (diff) | |
download | mongo-8bc6a62611724c9a9530c460034e47ed483c33f3.tar.gz |
SERVER-40922 npm install before running the fuzzer
Diffstat (limited to 'etc')
-rw-r--r-- | etc/evergreen.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index 95407edf3f6..650bd9e6cf6 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -1811,6 +1811,7 @@ functions: git clone git@github.com:10gen/jstestfuzz.git cp mongodb*/bin/mongod . + - command: shell.exec params: working_dir: src @@ -1820,6 +1821,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: @@ -1828,6 +1850,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. |