Skip to content

Commit a97b40e

Browse files
zekekevinsawicki
authored andcommitted
Install node 4 on GitHub CI (electron#6948)
1 parent 7bdce52 commit a97b40e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

script/cibuild

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,12 @@ def log_versions():
109109

110110
def setup_nodenv():
111111
if os.path.isdir('/usr/local/share/nodenv'):
112-
os.environ['NODENV_ROOT'] = '/usr/local/share/nodenv'
113-
os.environ['PATH'] = '/usr/local/share/nodenv/bin:/usr/local/share/nodenv/shims:' + os.environ['PATH']
114-
os.environ['NODENV_VERSION'] = 'v0.10.21'
112+
nodenv_root = os.path.join(os.environ['HOME'], '.nodenv')
113+
os.environ['NODENV_ROOT'] = nodenv_root
114+
os.environ['PATH'] = nodenv_root + '/bin:' + nodenv_root + '/shims:' + os.environ['PATH']
115+
os.environ['NODENV_VERSION'] = 'v4.5.0'
116+
subprocess.check_call(['/usr/local/share/nodenv/bin/nodenv', 'install', os.environ['NODENV_VERSION']])
117+
subprocess.check_call(['/usr/local/share/nodenv/bin/nodenv', 'rehash'])
115118

116119

117120
if __name__ == '__main__':

0 commit comments

Comments
 (0)