mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use node 0.10.21 on CI
This commit is contained in:
@@ -32,6 +32,9 @@ LINUX_DEPS_ARM = [
|
||||
def main():
|
||||
os.environ['CI'] = '1'
|
||||
|
||||
if os.environ.has_key('JANKY_SHA1'):
|
||||
setup_nodenv()
|
||||
|
||||
target_arch = 'x64'
|
||||
if os.environ.has_key('TARGET_ARCH'):
|
||||
target_arch = os.environ['TARGET_ARCH']
|
||||
@@ -86,5 +89,12 @@ def run_script(script, args=[]):
|
||||
subprocess.check_call([sys.executable, script] + args)
|
||||
|
||||
|
||||
def setup_nodenv():
|
||||
if os.isdir('/usr/local/share/nodenv'):
|
||||
os.environ['NODENV_ROOT'] = '/usr/local/share/nodenv'
|
||||
os.environ['PATH'] += '/usr/local/share/nodenv/bin:/usr/local/share/nodenv/shims:' + os.environ['PATH']
|
||||
os.environ['NODENV_VERSION'] = 'v0.10.21'
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user