summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDavid Bradford <david.bradford@mongodb.com>2020-03-19 17:08:11 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-20 17:56:48 +0000
commitef6cd28bc3f39d2c7e7bb175fcbc7e83584f11c0 (patch)
tree95cfb0dba0f89c09687eaf40dd2e31df1a5137b9 /SConstruct
parent40ecb806e22bb82df5e5ed74c11f7da46bf1136c (diff)
downloadmongo-ef6cd28bc3f39d2c7e7bb175fcbc7e83584f11c0.tar.gz
SERVER-47004: Properly run eslint on modules
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 9 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index a94374a1d40..40f711ff08d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -739,6 +739,14 @@ env_vars.Add('GITDIFFFLAGS',
help='Sets flags for git diff',
default='')
+env_vars.Add('REVISION',
+ help='Base git revision',
+ default='')
+
+env_vars.Add('ENTERPRISE_REV',
+ help='Base git revision of enterprise modules',
+ default='')
+
# Note: This probably is only really meaningful when configured via a variables file. It will
# also override whatever the SCons platform defaults would be.
env_vars.Add('ENV',
@@ -4178,7 +4186,7 @@ if get_option('lint-scope') == 'changed':
"buildscripts/eslint.py",
patch_file,
],
- action="$PYTHON ${SOURCES[0]} lint-git-diff ${SOURCES[1]}"
+ action="REVISION=$REVISION ENTERPRISE_REV=$ENTERPRISE_REV $PYTHON ${SOURCES[0]} lint-git-diff"
)
else: