Bootstrap scripts (fixes: #302)

This commit is contained in:
Jakub Warmuz 2015-03-23 08:55:10 +00:00
parent 08b60115e3
commit 12346b368a
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA
6 changed files with 19 additions and 13 deletions

View file

@ -1,10 +1,7 @@
language: python
# please keep this in sync with docs/using.rst (Ubuntu section, apt-get)
before_install: >
travis_retry sudo apt-get install python python-setuptools
python-virtualenv python-dev gcc swig dialog libaugeas0 libssl-dev
libffi-dev ca-certificates
# http://docs.travis-ci.com/user/ci-environment/#CI-environment-OS
before_install: travis_retry ./bootstrap/ubuntu.sh
install: "travis_retry pip install tox coveralls"
script: "travis_retry tox"

4
Vagrantfile vendored
View file

@ -6,10 +6,8 @@ VAGRANTFILE_API_VERSION = "2"
# Setup instructions from docs/using.rst
$ubuntu_setup_script = <<SETUP_SCRIPT
sudo apt-get update
sudo apt-get install -y python python-setuptools python-virtualenv python-dev gcc swig dialog libaugeas0 libssl-dev libffi-dev ca-certificates
cd /vagrant
./bootstrap/ubuntu.sh
if [ ! -d "venv" ]; then
virtualenv --no-site-packages -p python2 venv
./venv/bin/python setup.py dev

2
bootstrap/README Normal file
View file

@ -0,0 +1,2 @@
This directory contains scripts that install necessary OS-specific
prerequisite dependencies (see docs/using.rst).

2
bootstrap/mac.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
sudo brew install augeas swig

10
bootstrap/ubuntu.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
# Tested with:
# - 12.04 (Travis)
# - 14.04 (Vagrant)
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
python python-setuptools python-virtualenv python-dev gcc swig \
dialog libaugeas0 libssl-dev libffi-dev ca-certificates

View file

@ -23,18 +23,15 @@ Ubuntu
.. code-block:: shell
sudo apt-get install python python-setuptools python-virtualenv python-dev \
gcc swig dialog libaugeas0 libssl-dev libffi-dev \
ca-certificates
./bootstrap/ubuntu.sh
.. Please keep the above command in sync with .travis.yml (before_install)
Mac OSX
-------
.. code-block:: shell
sudo brew install augeas swig
./bootstrap/mac.sh
Installation