Changeset 1780d8b in sasview


Ignore:
Timestamp:
Apr 8, 2016 1:44:36 AM (9 years ago)
Author:
trnielsen
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
7b15990, fa4ea80, 70be725
Parents:
dcdca68
Message:

Update OS_X build script to the new code structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build_tools/jenkins_osx_build.sh

    re9e3e38 r1780d8b  
    11export 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 
    213 
    314cd $WORKSPACE 
    415 
    5 export PYTHONPATH=$WORKSPACE/sasview-install:$WORKSPACE/utils:$PYTHONPATH 
     16# SASMODLES 
     17cd $WORKSPACE 
     18cd sasmodels 
    619 
    7 ########################################################################## 
    8 # Use git/svn scripts 
     20rm -rf build 
     21rm -rf dist 
    922 
    10 #  Check dependencies 
    11 cd $WORKSPACE 
    12 if [ ! -d "utils" ]; then 
    13     mkdir utils 
    14 fi 
     23$PYTHON setup.py clean 
     24$PYTHON setup.py build 
    1525 
    1626 
    17 # BUILD_CODE 
     27# SASMODLES - BUILD DOCS 
     28cd  doc 
     29make html 
     30 
    1831cd $WORKSPACE 
    19 /bin/sh -xe build_tools/jenkins_linux_build.sh 
     32cd sasmodels 
     33$PYTHON setup.py bdist_egg 
    2034 
    2135 
    22 # TEST_CODE 
     36# SASVIEW 
    2337cd $WORKSPACE 
    24 /bin/sh -xe build_tools/jenkins_linux_test.sh 
     38cd sasview 
     39rm -rf sasview-install 
     40mkdir  sasview-install 
     41rm -rf utils 
     42mkdir  utils 
     43rm -rf dist 
     44rm -rf build 
    2545 
    2646 
    27 # BUILD DOCS 
    28 export LC_ALL=en_US.UTF-8 
    29 export LANG=en_US.UTF-8 
     47# INSTALL SASMODELS 
    3048cd $WORKSPACE 
    31 python setup.py docs 
     49cd sasmodels 
     50cd dist 
     51$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg 
    3252 
    3353 
    34 # BUILD_egg with new docs 
     54# BUILD SASVIEW 
    3555cd $WORKSPACE 
    36 python setup.py bdist_egg --skip-build 
     56cd sasview 
     57$PYTHON setup.py clean 
     58$PYTHON setup.py build 
     59$PYTHON setup.py docs 
    3760 
    3861 
    39 # PYLINT_CODE 
    40 #cd $WORKSPACE 
    41 #/bin/sh -xe build_tools/jenkins_linux_pylint.sh 
     62# SASVIEW BUILD_egg with new docs 
     63cd $WORKSPACE 
     64cd sasview 
     65python 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 
    4279 
    4380 
    4481# BUILD APP 
    45 cd $WORKSPACE/sasview 
     82cd $WORKSPACE 
     83cd sasview/sasview 
    4684python setup_mac.py py2app 
    4785 
    48 #cd $WORKSPACE/sasview/dist 
    49 #tar -czf `python -c "import pkg_resources;print '%s.tar.gz SasView-%s.app' % (pkg_resources.get_distribution('sasview').egg_name(),pkg_resources.get_distribution('sasview').version)"` 
Note: See TracChangeset for help on using the changeset viewer.