source:
sasview/build_tools/jenkins_linux_build.sh
@
ec30905
Last change on this file since ec30905 was bf3ca1e, checked in by trnielsen, 9 years ago | |
---|---|
|
|
File size: 1.2 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 | ||
13 | # SASMODLES | |
14 | cd $WORKSPACE | |
15 | cd sasmodels | |
16 | ||
17 | rm -rf build | |
18 | rm -rf dist | |
19 | ||
20 | $PYTHON setup.py clean | |
21 | $PYTHON setup.py build | |
22 | ||
23 | ||
24 | # SASMODLES - BUILD DOCS | |
25 | cd doc | |
26 | make html | |
27 | ||
28 | cd $WORKSPACE | |
29 | cd sasmodels | |
30 | $PYTHON setup.py bdist_egg | |
31 | ||
32 | ||
33 | # SASVIEW | |
[280d5c0] | 34 | cd $WORKSPACE |
[b6f563b4] | 35 | cd sasview |
[280d5c0] | 36 | rm -rf sasview-install |
[b6f563b4] | 37 | mkdir sasview-install |
38 | rm -rf utils | |
39 | mkdir utils | |
[280d5c0] | 40 | rm -rf dist |
41 | rm -rf build | |
42 | ||
[9939b16] | 43 | |
[b6f563b4] | 44 | # INSTALL SASMODELS |
45 | cd $WORKSPACE | |
46 | cd sasmodels | |
47 | cd dist | |
48 | $EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg | |
[280d5c0] | 49 | |
50 | ||
[b6f563b4] | 51 | # BUILD SASVIEW |
52 | cd $WORKSPACE | |
53 | cd sasview | |
54 | $PYTHON setup.py clean | |
55 | $PYTHON setup.py build docs bdist_egg | |
56 | ||
57 | ||
58 | # INSTALL SASVIEW | |
59 | cd $WORKSPACE | |
60 | cd sasview | |
61 | cd dist | |
62 | $EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg | |
63 | ||
64 | ||
65 | # TEST | |
66 | cd $WORKSPACE | |
67 | cd sasview | |
68 | cd test | |
69 | $PYTHON utest_sasview.py | |
70 | ||
[bf3ca1e] | 71 | ## PYLINT |
72 | #cd $WORKSPACE | |
73 | #cd sasview | |
74 | #$PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee test/sasview.txt | |
[b6f563b4] | 75 | |
[57986a1] | 76 |
Note: See TracBrowser
for help on using the repository browser.