source: sasview/build_tools/jenkins_osx_build.sh @ 873e630

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.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 873e630 was 873e630, checked in by trnielsen, 9 years ago

Update OS X build script

  • Property mode set to 100755
File size: 1.4 KB
Line 
1export PATH=$PATH:/usr/local/bin/
2
3
4PYTHON=${PYTHON:-`which python`}
5EASY_INSTALL=${EASY_INSTALL:-`which easy_install`}
6PYLINT=${PYLINT:-`which pylint`}
7
8export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/utils
9export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/sasview-install
10export LC_ALL=en_US.UTF-8
11export LANG=en_US.UTF-8
12
13
14cd $WORKSPACE
15
16# SASMODLES
17cd $WORKSPACE
18cd sasmodels
19
20rm -rf build
21rm -rf dist
22
23$PYTHON setup.py clean
24$PYTHON setup.py build
25
26
27# SASMODLES - BUILD DOCS
28cd  doc
29make html
30
31cd $WORKSPACE
32cd sasmodels
33$PYTHON setup.py bdist_egg
34
35
36# SASVIEW
37cd $WORKSPACE
38cd sasview
39rm -rf sasview-install
40mkdir  sasview-install
41rm -rf utils
42mkdir  utils
43rm -rf dist
44rm -rf build
45
46
47# INSTALL SASMODELS
48cd $WORKSPACE
49cd sasmodels
50cd dist
51$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg
52
53
54# BUILD SASVIEW
55cd $WORKSPACE
56cd sasview
57$PYTHON setup.py clean
58$PYTHON setup.py build docs bdist_egg
59#$PYTHON setup.py docs
60
61
62# SASVIEW BUILD_egg with new docs
63cd $WORKSPACE
64cd sasview
65#python setup.py bdist_egg
66cd dist
67$EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg
68
69# TEST
70cd $WORKSPACE
71cd sasview
72cd test
73$PYTHON utest_sasview.py
74
75# PYLINT
76cd $WORKSPACE
77cd sasview
78$PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee  test/sasview.txt
79
80
81# BUILD APP
82cd $WORKSPACE
83cd sasview/sasview
84python setup_mac.py py2app
85
Note: See TracBrowser for help on using the repository browser.