diff --git a/.travis.yml b/.travis.yml index 034467d..097742b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -124,19 +124,10 @@ before_install: fi # Set DEBUG_PRINT environment variable in settings - if [ -n "${DEBUG_PRINT}" ]; then set -x; fi - - source multibuild/common_utils.sh - - source multibuild/travis_steps.sh - - before_install + - ./travis_before_install.sh install: - # Maybe get and clean and patch source - - clean_code $REPO_DIR $BUILD_COMMIT - - ./patch_code.sh $REPO_DIR - - if [ "$TRAVIS_OS_NAME" == "linux" ]; then - export CFLAGS=${CFLAGS}" -Wno-sign-compare -Wno-unused-result\ - -Wno-strict-aliasing"; - fi - - build_wheel $REPO_DIR $PLAT + - ./travis_install.sh script: - install_run $PLAT diff --git a/travis_before_install.sh b/travis_before_install.sh new file mode 100755 index 0000000..ff4689e --- /dev/null +++ b/travis_before_install.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +source multibuild/common_utils.sh +source multibuild/travis_steps.sh +before_install + diff --git a/travis_install.sh b/travis_install.sh new file mode 100755 index 0000000..1db537a --- /dev/null +++ b/travis_install.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Maybe get and clean and patch source +clean_code $REPO_DIR $BUILD_COMMIT +./patch_code.sh $REPO_DIR +if [ "$TRAVIS_OS_NAME" == "linux" ]; then + export CFLAGS=${CFLAGS}" -Wno-sign-compare -Wno-unused-result\ + -Wno-strict-aliasing"; +fi +build_wheel $REPO_DIR $PLAT