From 5a61d54eb7360cca19d4cd15262a129b4002e6ba Mon Sep 17 00:00:00 2001 From: vitaut Date: Sun, 24 May 2015 07:48:06 -0700 Subject: [PATCH] Install newer version of Doxygen because of a bug in version 1.7.6.1 (#162) --- support/travis-build.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/support/travis-build.py b/support/travis-build.py index 0afed4d7..a0b0245f 100755 --- a/support/travis-build.py +++ b/support/travis-build.py @@ -2,7 +2,7 @@ # Build the project on Travis CI. from __future__ import print_function -import errno, os, re, shutil, sys, tempfile +import errno, os, re, shutil, sys, tempfile, urllib2 from subprocess import call, check_call, Popen, PIPE, STDOUT def rmtree_if_exists(dir): @@ -22,8 +22,14 @@ if build == 'Doc': 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(['sudo', 'apt-get', 'install', 'python-virtualenv', 'nodejs']) check_call(['npm', 'install', '-g', 'less', 'less-plugin-clean-css']) + deb_file = 'doxygen_1.8.6-2_amd64.deb' + response = urllib2.urlopen('http://mirrors.kernel.org/ubuntu/pool/main/d/doxygen/' + + deb_file) + with open(deb_file, 'wb') as f: + f.write(response.read()) + check_call(['sudo', 'dpkg', '-i', deb_file]) cppformat_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.insert(0, os.path.join(cppformat_dir, 'doc')) import build