source:
sasview/build_tools/jenkins_osx_build.sh
@
e3d047e
Last change on this file since e3d047e was 8ca1ba1, checked in by trnielsen, 8 years ago | |
---|---|
|
|
File size: 1.5 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 | ||
[8ca1ba1] | 17 | # SET SASVIEW GITHASH |
18 | cd $WORKSPACE | |
19 | cd sasview/sasview | |
20 | githash=$( git rev-parse HEAD ) | |
21 | sed -i.bak s/GIT_COMMIT/$githash/g __init__.py | |
22 | ||
23 | ||
[1780d8b] | 24 | # SASMODLES |
[8a2e317] | 25 | cd $WORKSPACE |
[1780d8b] | 26 | cd sasmodels |
[8a2e317] | 27 | |
[1780d8b] | 28 | rm -rf build |
29 | rm -rf dist | |
[8a2e317] | 30 | |
[1780d8b] | 31 | $PYTHON setup.py clean |
32 | $PYTHON setup.py build | |
33 | ||
34 | ||
35 | # SASMODLES - BUILD DOCS | |
36 | cd doc | |
37 | make html | |
[8a2e317] | 38 | |
39 | cd $WORKSPACE | |
[1780d8b] | 40 | cd sasmodels |
41 | $PYTHON setup.py bdist_egg | |
[8a2e317] | 42 | |
43 | ||
[1780d8b] | 44 | # SASVIEW |
[8a2e317] | 45 | cd $WORKSPACE |
[1780d8b] | 46 | cd sasview |
47 | rm -rf sasview-install | |
48 | mkdir sasview-install | |
49 | rm -rf utils | |
50 | mkdir utils | |
51 | rm -rf dist | |
52 | rm -rf build | |
[8a2e317] | 53 | |
54 | ||
[1780d8b] | 55 | # INSTALL SASMODELS |
[8a2e317] | 56 | cd $WORKSPACE |
[1780d8b] | 57 | cd sasmodels |
58 | cd dist | |
59 | $EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg | |
[8a2e317] | 60 | |
61 | ||
[1780d8b] | 62 | # BUILD SASVIEW |
[8a2e317] | 63 | cd $WORKSPACE |
[1780d8b] | 64 | cd sasview |
65 | $PYTHON setup.py clean | |
[873e630] | 66 | $PYTHON setup.py build docs bdist_egg |
[8a2e317] | 67 | |
68 | ||
[259aaa0] | 69 | # INSTALL SASVIEW |
[8a2e317] | 70 | cd $WORKSPACE |
[1780d8b] | 71 | cd sasview |
72 | cd dist | |
73 | $EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg | |
[8a2e317] | 74 | |
[259aaa0] | 75 | |
[1780d8b] | 76 | # TEST |
[c5d1c37] | 77 | cd $WORKSPACE |
78 | cd sasview | |
79 | cd test | |
80 | $PYTHON utest_sasview.py | |
[8a2e317] | 81 | |
[1780d8b] | 82 | # PYLINT |
83 | cd $WORKSPACE | |
84 | cd sasview | |
85 | $PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee test/sasview.txt | |
[8a2e317] | 86 | |
87 | # BUILD APP | |
[1780d8b] | 88 | cd $WORKSPACE |
89 | cd sasview/sasview | |
[aff7904] | 90 | $PYTHON setup_mac.py py2app |
[8a2e317] | 91 |
Note: See TracBrowser
for help on using the repository browser.