aboutsummaryrefslogtreecommitdiff
path: root/.travis.sh
diff options
context:
space:
mode:
authorEvan Nemerson <evan@nemerson.com>2016-06-28 20:35:16 -0700
committerEvan Nemerson <evan@nemerson.com>2016-07-26 08:53:26 -0700
commit37be4e37ce355a503994586f95f80be0328020e6 (patch)
treeeafe73bbade234b88bfe814c5a9ecca243cfe09a /.travis.sh
parent3e33d7636a6db1771139de11f47bd855306d6038 (diff)
downloadbrotli-37be4e37ce355a503994586f95f80be0328020e6.tar.gz
travis: add many additional builds
Diffstat (limited to '.travis.sh')
-rwxr-xr-x.travis.sh46
1 files changed, 46 insertions, 0 deletions
diff --git a/.travis.sh b/.travis.sh
new file mode 100755
index 0000000..6f3f3dc
--- /dev/null
+++ b/.travis.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+case "$1" in
+ "install")
+ case "${TRAVIS_OS_NAME}" in
+ "osx")
+ brew update
+ brew install binutils
+
+ case "${CC}" in
+ "gcc-"*)
+ which ${CC} || brew install homebrew/versions/gcc$(echo "${CC#*-}" | sed 's/\.//')
+ ;;
+ esac
+
+ case "${BUILD_SYSTEM}" in
+ "python")
+ source terryfy/travis_tools.sh
+ get_python_environment $INSTALL_TYPE $PYTHON_VERSION venv
+ pip install --upgrade wheel
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ "script")
+ case "${BUILD_SYSTEM}" in
+ "cmake")
+ mkdir builddir && cd builddir
+ cmake -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DENABLE_SANITIZER="${SANITIZER}" ..
+ make VERBOSE=1
+ make test
+ ;;
+ "python")
+ python setup.py build_ext test
+ ;;
+ esac
+ ;;
+ "after_success")
+ case "${BUILD_SYSTEM}" in
+ "python")
+ pip wheel -w dist .
+ ;;
+ esac
+ ;;
+esac