source: sasview/build_tools/jenkins_osx_build.sh @ 50f1477

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 50f1477 was b742b8b5, checked in by wojciech, 8 years ago

Dummy commit to check if jenkins is up and running again

  • Property mode set to 100755
File size: 1.6 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
[b742b8b5]39#SASMODELS - BUILDING AND TESTING
[8a2e317]40cd $WORKSPACE
[1780d8b]41cd sasmodels
42$PYTHON setup.py bdist_egg
[5dab2bc]43$PYTHON -m sasmodels.model_test all
[8a2e317]44
[1780d8b]45# SASVIEW
[8a2e317]46cd $WORKSPACE
[1780d8b]47cd sasview
48rm -rf sasview-install
49mkdir  sasview-install
50rm -rf utils
51mkdir  utils
52rm -rf dist
53rm -rf build
[8a2e317]54
55
[1780d8b]56# INSTALL SASMODELS
[8a2e317]57cd $WORKSPACE
[1780d8b]58cd sasmodels
59cd dist
60$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg
[8a2e317]61
62
[1780d8b]63# BUILD SASVIEW
[8a2e317]64cd $WORKSPACE
[1780d8b]65cd sasview
66$PYTHON setup.py clean
[873e630]67$PYTHON setup.py build docs bdist_egg
[8a2e317]68
69
[259aaa0]70# INSTALL SASVIEW
[8a2e317]71cd $WORKSPACE
[1780d8b]72cd sasview
73cd dist
74$EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg
[8a2e317]75
[259aaa0]76
[1780d8b]77# TEST
[c5d1c37]78cd $WORKSPACE
79cd sasview
80cd test
81$PYTHON utest_sasview.py
[8a2e317]82
[1780d8b]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
[8a2e317]87
88# BUILD APP
[1780d8b]89cd $WORKSPACE
90cd sasview/sasview
[aff7904]91$PYTHON setup_mac.py py2app
[8a2e317]92
Note: See TracBrowser for help on using the repository browser.