source: sasview/build_tools/jenkins_ubuntu_build.sh @ 0c715d6

ESS_GUIESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 0c715d6 was 0c715d6, checked in by wojciech, 6 years ago

Updated script with dynamic lib path

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[fb3d974]1# Set up correct shell
2#!/bin/bash
3
4## Set up path for py36 - conda
[bc8750eb]5export PATH=/home/sasview/anaconda3/bin:$PATH
[fb3d974]6
7
8# Set proxy
9export http_proxy=http://192.168.1.1:8123
10export https_proxy=http://192.168.1.1:8123
11
12# List conda envs already on system
13conda env list
14
15# Make new env from git yml file
16cd $WORKSPACE
17cd sasview
18cd build_tools
[8dd7b79]19conda env create --force -f conda_qt5_min_ubuntu.yml
[fb3d974]20conda env list
21
22# Activate new env
23source activate qt5_ubuntu
24conda list
25conda env list
26
[0c715d6]27# List envs
28conda list
29a='/home/sasview/miniconda3/envs'
30b=$conda_env_name
31c='/lib'
32DYLD_LIBRARY_PATH=$a$b$c
33export DYLD_LIBRARY_PATH
34
[fb3d974]35# Now build Sasview
36
37# Sasmodels
38cd $WORKSPACE
39cd sasmodels
40python setup.py build
41
42cd $WORKSPACE
43cd sasmodels
44cd doc
45make html
46
47cd $WORKSPACE
48cd sasmodels
49python setup.py build install
50
51
52# SasView
53cd $WORKSPACE 
54cd sasview
55python src/sas/qtgui/convertUI.py
56python setup.py build docs
57python setup.py install
58
59# Pyinstaller
60cd $WORKSPACE 
61cd sasview
62cd installers
63pyinstaller sasview_qt5_centos.spec
64
65cd $WORKSPACE 
66cd sasview
67cd installers
68cp run_sasview.sh dist/sasview
69cp set_sasview_qt5_path.sh dist/sasview
70cd dist
71mv sasview SasView
72tar czvf SasView.tar.gz SasView
73
Note: See TracBrowser for help on using the repository browser.