source:
sasview/build_tools/jenkins_osx_build.sh
@
99f8760
Last change on this file since 99f8760 was 2f6d340, checked in by Paul Kienzle <pkienzle@…>, 8 years ago | |
---|---|
|
|
File size: 1.6 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 | |
[2f6d340] | 19 | cd sasview/src/sas/sasview |
[8ca1ba1] | 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 | |
[b742b8b5] | 39 | #SASMODELS - BUILDING AND TESTING |
[8a2e317] | 40 | cd $WORKSPACE |
[1780d8b] | 41 | cd sasmodels |
42 | $PYTHON setup.py bdist_egg | |
[5dab2bc] | 43 | $PYTHON -m sasmodels.model_test all |
[8a2e317] | 44 | |
[1780d8b] | 45 | # SASVIEW |
[8a2e317] | 46 | cd $WORKSPACE |
[1780d8b] | 47 | cd sasview |
48 | rm -rf sasview-install | |
49 | mkdir sasview-install | |
50 | rm -rf utils | |
51 | mkdir utils | |
52 | rm -rf dist | |
53 | rm -rf build | |
[8a2e317] | 54 | |
55 | ||
[1780d8b] | 56 | # INSTALL SASMODELS |
[8a2e317] | 57 | cd $WORKSPACE |
[1780d8b] | 58 | cd sasmodels |
59 | cd dist | |
60 | $EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg | |
[8a2e317] | 61 | |
62 | ||
[1780d8b] | 63 | # BUILD SASVIEW |
[8a2e317] | 64 | cd $WORKSPACE |
[1780d8b] | 65 | cd sasview |
66 | $PYTHON setup.py clean | |
[873e630] | 67 | $PYTHON setup.py build docs bdist_egg |
[8a2e317] | 68 | |
69 | ||
[259aaa0] | 70 | # INSTALL SASVIEW |
[8a2e317] | 71 | cd $WORKSPACE |
[1780d8b] | 72 | cd sasview |
73 | cd dist | |
74 | $EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg | |
[8a2e317] | 75 | |
[259aaa0] | 76 | |
[1780d8b] | 77 | # TEST |
[c5d1c37] | 78 | cd $WORKSPACE |
79 | cd sasview | |
80 | cd test | |
81 | $PYTHON utest_sasview.py | |
[8a2e317] | 82 | |
[1780d8b] | 83 | # PYLINT |
84 | cd $WORKSPACE | |
85 | cd sasview | |
86 | $PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee test/sasview.txt | |
[8a2e317] | 87 | |
88 | # BUILD APP | |
[1780d8b] | 89 | cd $WORKSPACE |
[2f6d340] | 90 | cd sasview/installers |
[aff7904] | 91 | $PYTHON setup_mac.py py2app |
[8a2e317] | 92 |
Note: See TracBrowser
for help on using the repository browser.