ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 24f6f4a was
8ca1ba1,
checked in by trnielsen, 8 years ago
|
Ticket #419: OSX Linux - Move GIT revision nr to build script
|
-
Property mode set to
100755
|
File size:
1.3 KB
|
Line | |
---|
1 | export PATH=$PATH:/usr/local/bin/ |
---|
2 | |
---|
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 | |
---|
10 | |
---|
11 | cd $WORKSPACE |
---|
12 | |
---|
13 | |
---|
14 | # SET SASVIEW GITHASH |
---|
15 | cd $WORKSPACE |
---|
16 | cd sasview/sasview |
---|
17 | githash=$( git rev-parse HEAD ) |
---|
18 | sed -i.bak s/GIT_COMMIT/$githash/g __init__.py |
---|
19 | |
---|
20 | |
---|
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 |
---|
39 | |
---|
40 | |
---|
41 | # SASVIEW |
---|
42 | cd $WORKSPACE |
---|
43 | cd sasview |
---|
44 | rm -rf sasview-install |
---|
45 | mkdir sasview-install |
---|
46 | rm -rf utils |
---|
47 | mkdir utils |
---|
48 | rm -rf dist |
---|
49 | rm -rf build |
---|
50 | |
---|
51 | |
---|
52 | # INSTALL SASMODELS |
---|
53 | cd $WORKSPACE |
---|
54 | cd sasmodels |
---|
55 | cd dist |
---|
56 | $EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg |
---|
57 | |
---|
58 | |
---|
59 | # BUILD SASVIEW |
---|
60 | cd $WORKSPACE |
---|
61 | cd sasview |
---|
62 | $PYTHON setup.py clean |
---|
63 | $PYTHON setup.py build docs bdist_egg |
---|
64 | |
---|
65 | |
---|
66 | # INSTALL SASVIEW |
---|
67 | cd $WORKSPACE |
---|
68 | cd sasview |
---|
69 | cd dist |
---|
70 | $EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg |
---|
71 | |
---|
72 | |
---|
73 | # TEST |
---|
74 | cd $WORKSPACE |
---|
75 | cd sasview |
---|
76 | cd test |
---|
77 | $PYTHON utest_sasview.py |
---|
78 | |
---|
79 | ## PYLINT |
---|
80 | #cd $WORKSPACE |
---|
81 | #cd sasview |
---|
82 | #$PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee test/sasview.txt |
---|
83 | |
---|
84 | |
---|
Note: See
TracBrowser
for help on using the repository browser.