Use node 0.10.21 on CI

This commit is contained in:
Kevin Sawicki 2016-04-07 09:53:33 -07:00
parent 577480421d
commit d3308cf8c3

View file

@ -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())