Fix nodesource.list creation

This commit is contained in:
vitaut 2015-05-21 07:20:26 -07:00
parent f77b00e1f7
commit 595845153d

View File

@ -17,8 +17,8 @@ if build == 'Doc':
travis = 'TRAVIS' in os.environ
# Install dependencies.
if travis:
with open('/etc/apt/sources.list.d/nodesource.list', 'a') as f:
f.write('deb http://deb.nodesource.com/node_0.10 precise main\n')
check_call("echo 'deb https://deb.nodesource.com/node_0.10 precise main' | " +
"sudo tee /etc/apt/sources.list.d/nodesource.list", shell=True)
check_call(['sudo', 'apt-get', 'update'])
check_call(['sudo', 'apt-get', 'install', 'python-virtualenv', 'doxygen', 'nodejs'])
check_call(['npm', 'install', '-g', 'less'])