source: sasview/build_tools/jenkins_osx_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.5 KB
RevLine 
[8a2e317]1export PATH=$PATH:/usr/local/bin/
2
[1780d8b]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
[52b7fd9]9export PYTHONPATH=$PYTHONPATH:/Library/Python/2.7/site-packages
10
[1780d8b]11export LC_ALL=en_US.UTF-8
12export LANG=en_US.UTF-8
13
14
15cd $WORKSPACE
16
[8ca1ba1]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
[1780d8b]24# SASMODLES
[8a2e317]25cd $WORKSPACE
[1780d8b]26cd sasmodels
[8a2e317]27
[1780d8b]28rm -rf build
29rm -rf dist
[8a2e317]30
[1780d8b]31$PYTHON setup.py clean
32$PYTHON setup.py build
33
34
35# SASMODLES - BUILD DOCS
36cd  doc
37make html
[8a2e317]38
39cd $WORKSPACE
[1780d8b]40cd sasmodels
41$PYTHON setup.py bdist_egg
[8a2e317]42
43
[1780d8b]44# SASVIEW
[8a2e317]45cd $WORKSPACE
[1780d8b]46cd sasview
47rm -rf sasview-install
48mkdir  sasview-install
49rm -rf utils
50mkdir  utils
51rm -rf dist
52rm -rf build
[8a2e317]53
54
[1780d8b]55# INSTALL SASMODELS
[8a2e317]56cd $WORKSPACE
[1780d8b]57cd sasmodels
58cd dist
59$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg
[8a2e317]60
61
[1780d8b]62# BUILD SASVIEW
[8a2e317]63cd $WORKSPACE
[1780d8b]64cd sasview
65$PYTHON setup.py clean
[873e630]66$PYTHON setup.py build docs bdist_egg
[8a2e317]67
68
[259aaa0]69# INSTALL SASVIEW
[8a2e317]70cd $WORKSPACE
[1780d8b]71cd sasview
72cd dist
73$EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg
[8a2e317]74
[259aaa0]75
[1780d8b]76# TEST
[c5d1c37]77cd $WORKSPACE
78cd sasview
79cd test
80$PYTHON utest_sasview.py
[8a2e317]81
[1780d8b]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
[8a2e317]86
87# BUILD APP
[1780d8b]88cd $WORKSPACE
89cd sasview/sasview
[aff7904]90$PYTHON setup_mac.py py2app
[8a2e317]91
Note: See TracBrowser for help on using the repository browser.