source: sasview/build_tools/jenkins_linux_build.sh @ bb57068

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since bb57068 was 724af06, checked in by Paul Kienzle <pkienzle@…>, 7 years ago

Merge branch 'master' into ticket-887-reorg

  • Property mode set to 100755
File size: 1.4 KB
Line 
1export PATH=$PATH:/usr/local/bin/
2
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
9
10
11cd $WORKSPACE
12
13
14# SET SASVIEW GITHASH
15cd $WORKSPACE
16cd sasview/src/sas/sasview
17githash=$( git rev-parse HEAD )
18sed -i.bak s/GIT_COMMIT/$githash/g __init__.py
19
20
21# SASMODLES
22cd $WORKSPACE
23cd sasmodels
24
25rm -rf build
26rm -rf dist
27
28$PYTHON setup.py clean
29$PYTHON setup.py build
30
31
32# SASMODLES - BUILD DOCS
33cd  doc
34make html
35
36cd $WORKSPACE
37cd sasmodels
38$PYTHON setup.py bdist_egg
39$PYTHON -m sasmodels.model_test all
40
41# SASVIEW
42cd $WORKSPACE
43cd sasview
44rm -rf sasview-install
45mkdir  sasview-install
46rm -rf utils
47mkdir  utils
48rm -rf dist
49rm -rf build
50
51
52# INSTALL SASMODELS
53cd $WORKSPACE
54cd sasmodels
55cd dist
56$EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg
57
58
59# BUILD SASVIEW
60cd $WORKSPACE
61cd sasview
62$PYTHON setup.py clean
63$PYTHON setup.py build docs bdist_egg
64
65# CREATE PDF FROM LATEX
66#cd $WORKSPACE
67#cd sasview/docs/sphinx-docs/build/latex
68#pdflatex SasView.tex
69
70# INSTALL SASVIEW
71cd $WORKSPACE
72cd sasview
73cd dist
74$EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg
75
76
77# TEST
78cd $WORKSPACE
79cd sasview
80cd test
81$PYTHON utest_sasview.py
82
83## PYLINT
84#cd $WORKSPACE
85#cd sasview
86#$PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee  test/sasview.txt
Note: See TracBrowser for help on using the repository browser.