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