mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Install newer version of Doxygen because of a bug in version 1.7.6.1 (#162)
This commit is contained in:
parent
3310849fa0
commit
5a61d54eb7
@ -2,7 +2,7 @@
|
|||||||
# Build the project on Travis CI.
|
# Build the project on Travis CI.
|
||||||
|
|
||||||
from __future__ import print_function
|
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
|
from subprocess import call, check_call, Popen, PIPE, STDOUT
|
||||||
|
|
||||||
def rmtree_if_exists(dir):
|
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" | ' +
|
check_call('echo "deb https://deb.nodesource.com/node_0.10 precise main" | ' +
|
||||||
'sudo tee /etc/apt/sources.list.d/nodesource.list', shell=True)
|
'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', 'nodejs'])
|
||||||
check_call(['npm', 'install', '-g', 'less', 'less-plugin-clean-css'])
|
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__)))
|
cppformat_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||||
sys.path.insert(0, os.path.join(cppformat_dir, 'doc'))
|
sys.path.insert(0, os.path.join(cppformat_dir, 'doc'))
|
||||||
import build
|
import build
|
||||||
|
Loading…
Reference in New Issue
Block a user