Polishing release task
This commit is contained in:
2
build.sh
2
build.sh
@ -11,7 +11,7 @@ cp src/index.html mopidy_iris/static/index.html
|
||||
# process production html
|
||||
BUILD=$(date +%s)
|
||||
if [ $# -eq 0 ]; then
|
||||
VERSION="preview"
|
||||
VERSION="0.0.0"
|
||||
else
|
||||
VERSION=$1
|
||||
fi
|
||||
|
||||
@ -12,7 +12,7 @@ from handlers import WebsocketHandler, HttpHandler
|
||||
from core import IrisCore
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
__version__ = "33"
|
||||
__version__ = "0.0.0"
|
||||
|
||||
##
|
||||
# Core extension class
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mopidy-iris",
|
||||
"version": "33",
|
||||
"version": "0.0.0",
|
||||
"description": "Mopidy HTTP interface",
|
||||
"repository": "https://github.com/jaedb/iris",
|
||||
"author": "James Barnsley <james@barnsley.nz>",
|
||||
@ -44,6 +44,6 @@
|
||||
"dev": "./build.sh && NODE_ENV=development webpack --watch",
|
||||
"prod": "./build.sh && NODE_ENV=development webpack && NODE_ENV=production webpack",
|
||||
"test": "./build.sh $1",
|
||||
"release": "NODE_ENV=production webpack && NODE_ENV=development webpack && ./build.sh $1 && git add -A && git commit -m 'Buildout for version $1' && python setup.py sdist upload -r pypi"
|
||||
"release": "NODE_ENV=production webpack && NODE_ENV=development webpack && ./build.sh $1 && python setup.py sdist upload -r pypi"
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,10 +38,13 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// Release details
|
||||
// These are automatically injected by build.sh
|
||||
var build = "BUILD_HERE";
|
||||
var version = "VERSION_HERE";
|
||||
|
||||
// Initiate Raven Sentry
|
||||
// Initiate error tracking. This helps catch errors early so
|
||||
// patches can accurately and quickly fix issues.
|
||||
Raven.config(
|
||||
'https://023e3bf7721b48f29948545fc36a4621@sentry.io/219026',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user