diff options
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 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. |