source: sasview/build_tools/travis_build.sh @ 24f6f4a

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 24f6f4a was 68e6ac8, checked in by GitHub <noreply@…>, 8 years ago

Update travis_build.sh

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[68e6ac8]1# Simplified build for Travic CI
2# No documentation is built
[8ab41a2]3export PATH=$PATH:/usr/local/bin/
4
5PYTHON=${PYTHON:-`which python`}
6EASY_INSTALL=${EASY_INSTALL:-`which easy_install`}
7
8export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/utils
9export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/sasview-install
10
11# SET SASVIEW GITHASH
[68e6ac8]12cd $WORKSPACE/sasview/sasview
[8ab41a2]13githash=$( git rev-parse HEAD )
14sed -i.bak s/GIT_COMMIT/$githash/g __init__.py
15
[68e6ac8]16# SASMODELS
17cd $WORKSPACE/sasmodels
[8ab41a2]18rm -rf build
19rm -rf dist
20$PYTHON setup.py clean
21$PYTHON setup.py build
22$PYTHON setup.py bdist_egg
23
24# SASVIEW
[68e6ac8]25cd $WORKSPACE/sasview
[8ab41a2]26rm -rf sasview-install
27mkdir  sasview-install
28rm -rf utils
29mkdir  utils
30rm -rf dist
31rm -rf build
32
33# INSTALL SASMODELS
[68e6ac8]34cd $WORKSPACE/sasmodels/dist
[8ab41a2]35$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg
36
37# BUILD SASVIEW
[68e6ac8]38cd $WORKSPACE/sasview
[8ab41a2]39$PYTHON setup.py clean
40$PYTHON setup.py build docs bdist_egg
41
42# INSTALL SASVIEW
[68e6ac8]43cd $WORKSPACE/sasview/dist
[8ab41a2]44$EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg
45
46# TEST
[68e6ac8]47cd $WORKSPACE/sasview/test
[8ab41a2]48$PYTHON utest_sasview.py
Note: See TracBrowser for help on using the repository browser.