source:
sasview/build_tools/jenkins_osx_build.sh
@
ec30905
Last change on this file since ec30905 was 52b7fd9, checked in by wojciech, 9 years ago | |
---|---|
|
|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[8a2e317] | 1 | export PATH=$PATH:/usr/local/bin/ |
2 | ||
[1780d8b] | 3 | PYTHON=${PYTHON:-`which python`} |
4 | EASY_INSTALL=${EASY_INSTALL:-`which easy_install`} | |
5 | PYLINT=${PYLINT:-`which pylint`} | |
6 | ||
7 | export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/utils | |
8 | export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/sasview-install | |
[52b7fd9] | 9 | export PYTHONPATH=$PYTHONPATH:/Library/Python/2.7/site-packages |
10 | ||
[1780d8b] | 11 | export LC_ALL=en_US.UTF-8 |
12 | export LANG=en_US.UTF-8 | |
13 | ||
14 | ||
15 | cd $WORKSPACE | |
16 | ||
17 | # SASMODLES | |
[8a2e317] | 18 | cd $WORKSPACE |
[1780d8b] | 19 | cd sasmodels |
[8a2e317] | 20 | |
[1780d8b] | 21 | rm -rf build |
22 | rm -rf dist | |
[8a2e317] | 23 | |
[1780d8b] | 24 | $PYTHON setup.py clean |
25 | $PYTHON setup.py build | |
26 | ||
27 | ||
28 | # SASMODLES - BUILD DOCS | |
29 | cd doc | |
30 | make html | |
[8a2e317] | 31 | |
32 | cd $WORKSPACE | |
[1780d8b] | 33 | cd sasmodels |
34 | $PYTHON setup.py bdist_egg | |
[8a2e317] | 35 | |
36 | ||
[1780d8b] | 37 | # SASVIEW |
[8a2e317] | 38 | cd $WORKSPACE |
[1780d8b] | 39 | cd sasview |
40 | rm -rf sasview-install | |
41 | mkdir sasview-install | |
42 | rm -rf utils | |
43 | mkdir utils | |
44 | rm -rf dist | |
45 | rm -rf build | |
[8a2e317] | 46 | |
47 | ||
[1780d8b] | 48 | # INSTALL SASMODELS |
[8a2e317] | 49 | cd $WORKSPACE |
[1780d8b] | 50 | cd sasmodels |
51 | cd dist | |
52 | $EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg | |
[8a2e317] | 53 | |
54 | ||
[1780d8b] | 55 | # BUILD SASVIEW |
[8a2e317] | 56 | cd $WORKSPACE |
[1780d8b] | 57 | cd sasview |
58 | $PYTHON setup.py clean | |
[873e630] | 59 | $PYTHON setup.py build docs bdist_egg |
[8a2e317] | 60 | |
61 | ||
[259aaa0] | 62 | # INSTALL SASVIEW |
[8a2e317] | 63 | cd $WORKSPACE |
[1780d8b] | 64 | cd sasview |
65 | cd dist | |
66 | $EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg | |
[8a2e317] | 67 | |
[259aaa0] | 68 | |
[1780d8b] | 69 | # TEST |
[c5d1c37] | 70 | cd $WORKSPACE |
71 | cd sasview | |
72 | cd test | |
73 | $PYTHON utest_sasview.py | |
[8a2e317] | 74 | |
[1780d8b] | 75 | # PYLINT |
76 | cd $WORKSPACE | |
77 | cd sasview | |
78 | $PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee test/sasview.txt | |
[8a2e317] | 79 | |
80 | # BUILD APP | |
[1780d8b] | 81 | cd $WORKSPACE |
82 | cd sasview/sasview | |
[aff7904] | 83 | $PYTHON setup_mac.py py2app |
[8a2e317] | 84 |
Note: See TracBrowser
for help on using the repository browser.