source: sasview/build_tools/travis_build.sh @ bd3a3ae

magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249
Last change on this file since bd3a3ae was 2f6d340, checked in by Paul Kienzle <pkienzle@…>, 8 years ago

rename installers directory from sasview to installers

  • Property mode set to 100644
File size: 1.1 KB
Line 
1# Simplified build for Travis CI
2# No documentation is built
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
12cd $WORKSPACE/sasview/src/sas/sasview
13githash=$( git rev-parse HEAD )
14sed -i.bak s/GIT_COMMIT/$githash/g __init__.py
15
16# SASMODELS
17cd $WORKSPACE/sasmodels
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
25cd $WORKSPACE/sasview
26rm -rf sasview-install
27mkdir  sasview-install
28rm -rf utils
29mkdir  utils
30rm -rf dist
31rm -rf build
32
33# INSTALL SASMODELS
34cd $WORKSPACE/sasmodels/dist
35$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg
36
37# BUILD SASVIEW
38cd $WORKSPACE/sasview
39$PYTHON setup.py clean
40# $PYTHON setup.py build docs bdist_egg
41$PYTHON setup.py bdist_egg
42
43# INSTALL SASVIEW
44cd $WORKSPACE/sasview/dist
45$EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg
46
47# TEST
48cd $WORKSPACE/sasview/test
49$PYTHON utest_sasview.py
Note: See TracBrowser for help on using the repository browser.