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