source: sasview/build_tools/jenkins_linux_build.sh @ e3d047e

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 e3d047e 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
RevLine 
[b6f563b4]1export PATH=$PATH:/usr/local/bin/
[280d5c0]2
3PYTHON=${PYTHON:-`which python`}
[e473f6fb]4EASY_INSTALL=${EASY_INSTALL:-`which easy_install`}
[280d5c0]5PYLINT=${PYLINT:-`which pylint`}
6
[b6f563b4]7export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/utils
8export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/sasview-install
9
10
11cd $WORKSPACE
12
[8ca1ba1]13
14# SET SASVIEW GITHASH
15cd $WORKSPACE
16cd sasview/sasview
17githash=$( git rev-parse HEAD )
18sed -i.bak s/GIT_COMMIT/$githash/g __init__.py
19
20
[b6f563b4]21# SASMODLES
22cd $WORKSPACE
23cd sasmodels
24
25rm -rf build
26rm -rf dist
27
28$PYTHON setup.py clean
29$PYTHON setup.py build
30
31
32# SASMODLES - BUILD DOCS
33cd  doc
34make html
35
36cd $WORKSPACE
37cd sasmodels
38$PYTHON setup.py bdist_egg
39
40
41# SASVIEW
[280d5c0]42cd $WORKSPACE
[b6f563b4]43cd sasview
[280d5c0]44rm -rf sasview-install
[b6f563b4]45mkdir  sasview-install
46rm -rf utils
47mkdir  utils
[280d5c0]48rm -rf dist
49rm -rf build
50
[9939b16]51
[b6f563b4]52# INSTALL SASMODELS
53cd $WORKSPACE
54cd sasmodels
55cd dist
56$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg
[280d5c0]57
58
[b6f563b4]59# BUILD SASVIEW
60cd $WORKSPACE
61cd sasview
62$PYTHON setup.py clean
63$PYTHON setup.py build docs bdist_egg
64
65
66# INSTALL SASVIEW
67cd $WORKSPACE
68cd sasview
69cd dist
70$EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg
71
72
73# TEST
74cd $WORKSPACE
75cd sasview
76cd test
77$PYTHON utest_sasview.py
78
[bf3ca1e]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
[b6f563b4]83
[57986a1]84
Note: See TracBrowser for help on using the repository browser.