source: sasview/build_tools/jenkins_ubuntu_build.sh @ f810eb6

ESS_GUIESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_opencl
Last change on this file since f810eb6 was ec867f04, checked in by wojciech, 6 years ago

Adding yml file saving to the script

  • Property mode set to 100644
File size: 1.3 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
[1095866]6export QT_QPA_PLATFORM=offscreen
[fb3d974]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
[8e76e49]19conda env create --force -f conda_qt5_min_ubuntu.yml
20# conda env create --force -f conda_qt5_ubuntu.yml
[fb3d974]21conda env list
22
23# Activate new env
24source activate qt5_ubuntu
25conda list
26conda env list
27
28# Now build Sasview
29
30# Sasmodels
31cd $WORKSPACE
32cd sasmodels
33python setup.py build
34
35cd $WORKSPACE
36cd sasmodels
37cd doc
38make html
39
40cd $WORKSPACE
41cd sasmodels
42python setup.py build install
43
44
45# SasView
46cd $WORKSPACE 
47cd sasview
48python src/sas/qtgui/convertUI.py
[3bd0cd7]49python setup.py build docs install
[fb3d974]50
51# Pyinstaller
52cd $WORKSPACE 
53cd sasview
54cd installers
[ccf44de]55pyinstaller sasview_qt5_min_centos.spec
[fb3d974]56
57cd $WORKSPACE 
58cd sasview
59cd installers
60cp run_sasview.sh dist/sasview
61cp set_sasview_qt5_path.sh dist/sasview
62cd dist
63mv sasview SasView
64tar czvf SasView.tar.gz SasView
65
[ec867f04]66#Ymls storage
67cd $WORKSPACE
68conda env export >  env-build.yml
69conda list --explicit > explicit.yml
70
71a='/home/sasview/logs/'
72b='_env_build.yml'
73DEST_FILE=$a$BUILD_NUMBER$b
74cp env-build.yml $DEST_FILE
Note: See TracBrowser for help on using the repository browser.