-
-
Save davidbgk/8faf98e8799da44005db to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| sudo apt-get -y install python-virtualenv libxslt1-dev libxml2-dev python-virtualenv-tools | |
| export VERSION=`date +"%Y.%m.%d"`.$BUILD_NUMBER | |
| mkdir -p build/usr/share/python | |
| virtualenv build/usr/share/python/sentry | |
| build/usr/share/python/sentry/bin/pip install -U pip wheel distribute | |
| build/usr/share/python/sentry/bin/pip uninstall -y distribute | |
| build/usr/share/python/sentry/bin/pip install sentry[mysql] dj-database-url hiredis dj-redis-url django-redis-cache | |
| find build ! -perm -a+r -exec chmod a+r {} \; | |
| mkdir -p build/etc | |
| cd build/etc | |
| wget https://gist.githubusercontent.com/brutasse/foo/raw/bar/sentry.conf.py | |
| cd - | |
| cd build/usr/share/python/sentry | |
| virtualenv-tools --update-path /usr/share/python/sentry | |
| cd - | |
| find build -iname *.pyc -exec rm {} \; | |
| find build -iname *.pyo -exec rm {} \; | |
| fpm -t deb -s dir -C build -d libxslt1.1 -d libxml2 -d libffi6 -n sentry -v $VERSION . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment