2018-06-07 13:42:44 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-11-07 18:29:31 +00:00
|
|
|
# Requires SENTRY_AUTH_TOKEN and SENTRY_ORG set in .profile
|
|
|
|
|
|
|
|
old=$(git rev-list HEAD -n 1)
|
2018-06-07 13:42:44 +00:00
|
|
|
git pull
|
2018-11-07 18:29:31 +00:00
|
|
|
new=$(git rev-list HEAD -n 1)
|
|
|
|
if [ ${old} = ${new} ]; then
|
|
|
|
version=$(sentry-cli releases propose-version)
|
2018-11-07 19:19:46 +00:00
|
|
|
sentry-cli releases new --org stefano-pigozzi -p royalnet ${version}
|
|
|
|
sentry-cli releases set-commits --org stefano-pigozzi --auto ${version}
|
2018-11-07 18:29:31 +00:00
|
|
|
fi
|
2018-09-05 17:51:09 +00:00
|
|
|
sudo python3.6 -m pip install -r requirements.txt
|
2018-06-07 13:42:44 +00:00
|
|
|
sudo service apache2 restart
|
2018-09-17 22:35:51 +00:00
|
|
|
python3.6 -OO bots.py
|