Use node 0.10.21 on CI
This commit is contained in:
parent
577480421d
commit
d3308cf8c3
1 changed files with 10 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue