-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add travis builds for optional dependencies
- Django - SQLAlchemy - Google AppEngine
- Loading branch information
Showing
11 changed files
with
173 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash -e | ||
|
||
# used by Travis to install optional dependencies | ||
# see .travis.yml:env for envrionment variables | ||
|
||
function install_django { | ||
if [ -z "${DJANGO_VERSION}" ]; then | ||
return 0 | ||
fi | ||
|
||
pip install Django==${DJANGO_VERSION} | ||
} | ||
|
||
function install_sqlalchemy { | ||
if [ -z "${SQLALCHEMY_VERSION}" ]; then | ||
return 0 | ||
fi | ||
|
||
pip install SQLAlchemy==${SQLALCHEMY_VERSION} | ||
} | ||
|
||
function install_twisted { | ||
if [ -z "${TWISTED_VERSION}" ]; then | ||
return 0 | ||
fi | ||
|
||
pip install Twisted==${TWISTED_VERSION} | ||
} | ||
|
||
function install_gae_sdk { | ||
if [ -z "${GAESDK_VERSION}" ]; then | ||
return 0 | ||
fi | ||
|
||
wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_${GAESDK_VERSION}.zip -nv | ||
mkdir -p /tmp/gaesdk | ||
unzip -q google_appengine_${GAESDK_VERSION}.zip -d /tmp/gaesdk | ||
} | ||
|
||
install_django | ||
install_sqlalchemy | ||
install_twisted | ||
install_gae_sdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -e | ||
|
||
# used by travis to determine whether to install Cython (and thereby compile | ||
# the PyAMF extensions) | ||
|
||
|
||
if [ "${USE_EXTENSIONS}" == "true" ]; then | ||
pip install Cython | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.