2
2
# Build the project on Travis CI.
3
3
4
4
from __future__ import print_function
5
- import errno , os , re , shutil , sys , tempfile
5
+ import errno , os , re , shutil , sys , tempfile , urllib2
6
6
from subprocess import call , check_call , Popen , PIPE , STDOUT
7
7
8
8
def rmtree_if_exists (dir ):
@@ -22,8 +22,14 @@ def rmtree_if_exists(dir):
22
22
check_call ('echo "deb https://deb.nodesource.com/node_0.10 precise main" | ' +
23
23
'sudo tee /etc/apt/sources.list.d/nodesource.list' , shell = True )
24
24
check_call (['sudo' , 'apt-get' , 'update' ])
25
- check_call (['sudo' , 'apt-get' , 'install' , 'python-virtualenv' , 'doxygen' , ' nodejs' ])
25
+ check_call (['sudo' , 'apt-get' , 'install' , 'python-virtualenv' , 'nodejs' ])
26
26
check_call (['npm' , 'install' , '-g' , 'less' , 'less-plugin-clean-css' ])
27
+ deb_file = 'doxygen_1.8.6-2_amd64.deb'
28
+ response = urllib2 .urlopen ('http://mirrors.kernel.org/ubuntu/pool/main/d/doxygen/' +
29
+ deb_file )
30
+ with open (deb_file , 'wb' ) as f :
31
+ f .write (response .read ())
32
+ check_call (['sudo' , 'dpkg' , '-i' , deb_file ])
27
33
cppformat_dir = os .path .dirname (os .path .dirname (os .path .realpath (__file__ )))
28
34
sys .path .insert (0 , os .path .join (cppformat_dir , 'doc' ))
29
35
import build
0 commit comments