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 cf92b1f was
22c1f1c,
checked in by trnielsen, 9 years ago
|
Update script for Linux workflow
|
-
Property mode set to
100755
|
File size:
1.0 KB
|
Rev | Line | |
---|
[2a9147f] | 1 | #! /bin/sh |
---|
| 2 | |
---|
| 3 | # try to find reasonable settings, if not provided in the environment |
---|
| 4 | PYTHON=${PYTHON:-`which python`} |
---|
| 5 | EASY_INSTALL=${EASY_INSTALL:-`which easy_install`} |
---|
| 6 | PYLINT=${PYLINT:-`which pylint`} |
---|
| 7 | #BUILD_TOOLS_DIR=`dirname $0` |
---|
| 8 | #WORKSPACE=${WORKSPACE:-`readlink -f $BUILD_TOOLS_DIR/..`} |
---|
| 9 | # WORKSPACE top top level of source |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | cd $WORKSPACE |
---|
| 13 | |
---|
| 14 | cd $WORKSPACE/sasview |
---|
| 15 | |
---|
| 16 | if [ ! -d "utils" ]; then |
---|
| 17 | mkdir utils |
---|
| 18 | fi |
---|
| 19 | |
---|
| 20 | rm -rf sasview-install |
---|
| 21 | mkdir sasview-install |
---|
| 22 | rm -rf dist |
---|
| 23 | rm -rf build |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | export PYTHONPATH=$WORKSPACE/sasview/sasview-install:$WORKSPACE/sasview/utils:$PYTHONPATH |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | "$EASY_INSTALL" -d "$WORKSPACE/sasview/utils" bumps==0.7.5.6 |
---|
| 30 | "$EASY_INSTALL" -d "$WORKSPACE/sasview/utils" periodictable==1.3.0 |
---|
| 31 | |
---|
| 32 | # CHECK_PACKAGES |
---|
| 33 | $PYTHON check_packages.py |
---|
| 34 | |
---|
| 35 | # BUILD_CODE |
---|
| 36 | $PYTHON setup.py build |
---|
| 37 | |
---|
| 38 | # TEST_CODE |
---|
| 39 | cd test |
---|
| 40 | $PYTHON utest_sasview.py |
---|
| 41 | cd .. |
---|
| 42 | |
---|
| 43 | # BUILD_DOCS |
---|
| 44 | $PYTHON setup.py docs |
---|
| 45 | |
---|
| 46 | # BUILD_EGG |
---|
| 47 | $PYTHON setup.py bdist_egg --skip-build |
---|
| 48 | |
---|
[22c1f1c] | 49 | cd $WORKSPACE/sasview/dist |
---|
| 50 | #ln -s sasview*.egg sasview.egg || true |
---|
| 51 | $EASY_INSTALL -N -d ../sasview-install sasview*.egg |
---|
[2a9147f] | 52 | |
---|
| 53 | cd $WORKSPACE |
---|
| 54 | |
---|
Note: See
TracBrowser
for help on using the repository browser.