source: sasview/build_tools/jenkins_osx_build.sh @ 44753d6

ESS_GUIESS_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 44753d6 was 2f6d340, checked in by Paul Kienzle <pkienzle@…>, 8 years ago

rename installers directory from sasview to installers

  • Property mode set to 100755
File size: 1.6 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/src/sas/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
39#SASMODELS - BUILDING AND TESTING
40cd $WORKSPACE
41cd sasmodels
42$PYTHON setup.py bdist_egg
43$PYTHON -m sasmodels.model_test all
44
45# SASVIEW
46cd $WORKSPACE
47cd sasview
48rm -rf sasview-install
49mkdir  sasview-install
50rm -rf utils
51mkdir  utils
52rm -rf dist
53rm -rf build
54
55
56# INSTALL SASMODELS
57cd $WORKSPACE
58cd sasmodels
59cd dist
60$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg
61
62
63# BUILD SASVIEW
64cd $WORKSPACE
65cd sasview
66$PYTHON setup.py clean
67$PYTHON setup.py build docs bdist_egg
68
69
70# INSTALL SASVIEW
71cd $WORKSPACE
72cd sasview
73cd dist
74$EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg
75
76
77# TEST
78cd $WORKSPACE
79cd sasview
80cd test
81$PYTHON utest_sasview.py
82
83# PYLINT
84cd $WORKSPACE
85cd sasview
86$PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee  test/sasview.txt
87
88# BUILD APP
89cd $WORKSPACE
90cd sasview/installers
91$PYTHON setup_mac.py py2app
92
Note: See TracBrowser for help on using the repository browser.