Add travis.yml for building binaries.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-10-06 16:32:59 -04:00
commit ad96e10938
6 changed files with 50 additions and 2 deletions

11
script/travis/build-binary Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
script/build-linux
# TODO: add script/build-image
else
script/prepare-osx
script/build-osx
fi

10
script/travis/ci Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
tox -e py27,py34 -- tests/unit
else
# TODO: we could also install py34 and test against it
python -m tox -e py27 -- tests/unit
fi

9
script/travis/install Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
set -ex
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
pip install tox==2.1.1
else
pip install --user tox==2.1.1
fi