source: sasview/build_tools/jenkins_osx_build.sh @ 9968d6a

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 9968d6a 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.5 KB
Line 
1export PATH=$PATH:/usr/local/bin/
2
3PYTHON=${PYTHON:-`which python`}
4EASY_INSTALL=${EASY_INSTALL:-`which easy_install`}
5PYLINT=${PYLINT:-`which pylint`}
6
7export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/utils
8export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/sasview-install
9export PYTHONPATH=$PYTHONPATH:/Library/Python/2.7/site-packages
10
11export LC_ALL=en_US.UTF-8
12export LANG=en_US.UTF-8
13
14
15cd $WORKSPACE
16
17# SET SASVIEW GITHASH
18cd $WORKSPACE
19cd sasview/sasview
20githash=$( git rev-parse HEAD )
21sed -i.bak s/GIT_COMMIT/$githash/g __init__.py
22
23
24# SASMODLES
25cd $WORKSPACE
26cd sasmodels
27
28rm -rf build
29rm -rf dist
30
31$PYTHON setup.py clean
32$PYTHON setup.py build
33
34
35# SASMODLES - BUILD DOCS
36cd  doc
37make html
38
39cd $WORKSPACE
40cd sasmodels
41$PYTHON setup.py bdist_egg
42
43
44# SASVIEW
45cd $WORKSPACE
46cd sasview
47rm -rf sasview-install
48mkdir  sasview-install
49rm -rf utils
50mkdir  utils
51rm -rf dist
52rm -rf build
53
54
55# INSTALL SASMODELS
56cd $WORKSPACE
57cd sasmodels
58cd dist
59$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg
60
61
62# BUILD SASVIEW
63cd $WORKSPACE
64cd sasview
65$PYTHON setup.py clean
66$PYTHON setup.py build docs bdist_egg
67
68
69# INSTALL SASVIEW
70cd $WORKSPACE
71cd sasview
72cd dist
73$EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg
74
75
76# TEST
77cd $WORKSPACE
78cd sasview
79cd test
80$PYTHON utest_sasview.py
81
82# PYLINT
83cd $WORKSPACE
84cd sasview
85$PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee  test/sasview.txt
86
87# BUILD APP
88cd $WORKSPACE
89cd sasview/sasview
90$PYTHON setup_mac.py py2app
91
Note: See TracBrowser for help on using the repository browser.