forked from rackerlabs/mimic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-app.sh
executable file
·31 lines (21 loc) · 958 Bytes
/
build-app.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash -x
THIS_SCRIPT="$0";
cd "$(dirname ${THIS_SCRIPT})";
# cleanup any old build artifacts
rm -fr ./dist ./build;
# We should really be using a virtualenv for this, but unfortunately due to
# this bug:
# https://bitbucket.org/ronaldoussoren/py2app/issue/156/virtualenvpy-recipe-calls-methods-renamed#comment-None
# virtualenv-based py2app installations are presently failing.
# For the moment, on Travis, we just do everything in a homebrew Python
# installation. Everywhere else, you can run this with PIP_USER=yes.
# install the stable dependencies for the main application
pip install -r requirements/production.txt;
# install the application itself
pip install .;
# install dependencies that are needed to build and run the mac application
pip install -r requirements/mac-app.txt;
# build the application using py2app
python setup.py py2app;
# run the tests for application that py2app built
./dist/mimic.app/Contents/MacOS/run-tests;