source:
sasview/build_tools/jenkins_linux_build.sh
@
a2b74bb
Last change on this file since a2b74bb was 724af06, checked in by Paul Kienzle <pkienzle@…>, 7 years ago | |
---|---|
|
|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[b6f563b4] | 1 | export PATH=$PATH:/usr/local/bin/ |
[280d5c0] | 2 | |
3 | PYTHON=${PYTHON:-`which python`} | |
[e473f6fb] | 4 | EASY_INSTALL=${EASY_INSTALL:-`which easy_install`} |
[280d5c0] | 5 | PYLINT=${PYLINT:-`which pylint`} |
6 | ||
[b6f563b4] | 7 | export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/utils |
8 | export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/sasview-install | |
9 | ||
10 | ||
11 | cd $WORKSPACE | |
12 | ||
[8ca1ba1] | 13 | |
14 | # SET SASVIEW GITHASH | |
15 | cd $WORKSPACE | |
[2f6d340] | 16 | cd sasview/src/sas/sasview |
[8ca1ba1] | 17 | githash=$( git rev-parse HEAD ) |
18 | sed -i.bak s/GIT_COMMIT/$githash/g __init__.py | |
19 | ||
20 | ||
[b6f563b4] | 21 | # SASMODLES |
22 | cd $WORKSPACE | |
23 | cd sasmodels | |
24 | ||
25 | rm -rf build | |
26 | rm -rf dist | |
27 | ||
28 | $PYTHON setup.py clean | |
29 | $PYTHON setup.py build | |
30 | ||
31 | ||
32 | # SASMODLES - BUILD DOCS | |
33 | cd doc | |
34 | make html | |
35 | ||
36 | cd $WORKSPACE | |
37 | cd sasmodels | |
38 | $PYTHON setup.py bdist_egg | |
[128c287] | 39 | $PYTHON -m sasmodels.model_test all |
[b6f563b4] | 40 | |
41 | # SASVIEW | |
[280d5c0] | 42 | cd $WORKSPACE |
[b6f563b4] | 43 | cd sasview |
[280d5c0] | 44 | rm -rf sasview-install |
[b6f563b4] | 45 | mkdir sasview-install |
46 | rm -rf utils | |
47 | mkdir utils | |
[280d5c0] | 48 | rm -rf dist |
49 | rm -rf build | |
50 | ||
[9939b16] | 51 | |
[b6f563b4] | 52 | # INSTALL SASMODELS |
53 | cd $WORKSPACE | |
54 | cd sasmodels | |
55 | cd dist | |
56 | $EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg | |
[280d5c0] | 57 | |
58 | ||
[b6f563b4] | 59 | # BUILD SASVIEW |
60 | cd $WORKSPACE | |
61 | cd sasview | |
62 | $PYTHON setup.py clean | |
63 | $PYTHON setup.py build docs bdist_egg | |
64 | ||
[c0ef8da] | 65 | # CREATE PDF FROM LATEX |
[1573220] | 66 | #cd $WORKSPACE |
67 | #cd sasview/docs/sphinx-docs/build/latex | |
68 | #pdflatex SasView.tex | |
[b6f563b4] | 69 | |
70 | # INSTALL SASVIEW | |
71 | cd $WORKSPACE | |
72 | cd sasview | |
73 | cd dist | |
74 | $EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg | |
75 | ||
76 | ||
77 | # TEST | |
78 | cd $WORKSPACE | |
79 | cd sasview | |
80 | cd test | |
81 | $PYTHON utest_sasview.py | |
82 | ||
[bf3ca1e] | 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 |
Note: See TracBrowser
for help on using the repository browser.