Signed-off-by: Daniel Nephin <[email protected]>
@@ -0,0 +1,19 @@
+sudo: required
+
+language: python
+services:
+ - docker
+matrix:
+ include:
+ - os: linux
+ - os: osx
+ language: generic
+install: ./script/travis/install
+script:
+ - ./script/travis/ci
+ - ./script/travis/build-binary
@@ -3,7 +3,6 @@ set -ex
PATH="/usr/local/bin:$PATH"
-./script/clean
rm -rf venv
virtualenv -p /usr/local/bin/python venv
@@ -24,7 +24,7 @@ if !(which brew); then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
-brew update
+brew update > /dev/null
if !(python_version | grep "$desired_python_version"); then
if brew list | grep python; then
@@ -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
@@ -0,0 +1,10 @@
+ tox -e py27,py34 -- tests/unit
+ # TODO: we could also install py34 and test against it
+ python -m tox -e py27 -- tests/unit
@@ -0,0 +1,9 @@
+set -ex
+ pip install tox==2.1.1
+ pip install --user tox==2.1.1