Install newer version of cmake

This commit is contained in:
Victor Zverovich
2015-03-03 22:07:20 -08:00
parent 29451ea8e2
commit 4d208ae86f
2 changed files with 201 additions and 2 deletions

View File

@@ -1,12 +1,15 @@
#!/usr/bin/env python
# Build the project with Biicode.
import glob, os, shutil
import bootstrap, glob, os, shutil
from download import Downloader
from subprocess import check_call
os_name = os.environ['TRAVIS_OS_NAME']
if os_name == 'linux':
# Install newer version of CMake.
bootstrap.install_cmake(
'cmake-3.1.1-Linux-i386.tar.gz', check_installed=False, download_dir=None, install_dir='.')
with Downloader().download('http://www.biicode.com/downloads/latest/ubuntu64') as f:
check_call(['sudo', 'dpkg', '-i', f])
elif os_name == 'osx':
@@ -16,7 +19,8 @@ elif os_name == 'osx':
project_dir = 'biicode_project'
check_call(['bii', 'init', project_dir])
cppformat_dir = os.path.join(project_dir, 'blocks/vitaut/cppformat')
shutil.copytree('.', cppformat_dir, ignore=shutil.ignore_patterns('biicode_project'))
shutil.copytree('.', cppformat_dir,
ignore=shutil.ignore_patterns('biicode_project'))
for f in glob.glob('support/biicode/*'):
shutil.copy(f, cppformat_dir)
check_call(['bii', 'cpp:build'], cwd=project_dir)