forked from fermiPy/fermipy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfake_travis.sh
More file actions
74 lines (66 loc) · 2.44 KB
/
fake_travis.sh
File metadata and controls
74 lines (66 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
export SLAC_ST_BUILD=false
export PIP_DEPS='coverage pytest-cov'
export CONDA2='conda install -y -c conda-forge healpy'
export INSTALL_CMD='python setup.py install'
export CONDA_CHANNELS="conda-forge"
export CONDA_DEPS='gammapy numpy astropy scipy matplotlib pytest pyyaml'
#export CONDA_DEPS='pytest pyyaml'
export CONDA_PATH='/u/ek/echarles/dmcat/software/build_test/miniconda'
NAME='main'
case $NAME in
main)
export PYTHON_VERSION="2.7"
export CONDA_DOWNLOAD="Miniconda2-latest-Linux-x86_64.sh"
export ST_INSTALL="conda install -y -c conda-forge -c conda-forge/label/cf201901 -c fermi fermitools"
;;
old)
export PYTHON_VERSION="2.7"
export CONDA_DOWNLOAD="Miniconda2-latest-Linux-x86_64.sh"
export ST_INSTALL="conda install -y -c conda-forge/label/cf201901 -c fermi fermitools=1.0.2"
;;
veryold)
export PYTHON_VERSION="2.7"
export CONDA_DOWNLOAD="Miniconda2-latest-Linux-x86_64.sh"
export ST_INSTALL="conda install -y -c conda-forge/label/cf201901 -c fermi fermitools=1.0.0"
;;
ancient)
export PYTHON_VERSION="2.7"
export CONDA_DOWNLOAD="Miniconda2-latest-Linux-x86_64.sh"
export ST_PATH='/u/ek/echarles/dmcat/software/build_test'
export ST_INSTALL="bash stinstall.sh $ST_PATH"
export FERMI_DIR='/u/ek/echarles/dmcat/software/build_test/ScienceTools/x86_64-unknown-linux-gnu-libc2.17'
export CONDA_DEPS='gammapy numpy astropy scipy matplotlib pytest pyyaml'
;;
docs)
export PYTHON_VERSION="3.6"
export ST_INSTALL=''
export DOCKER_INSTALL=''
export PIP_DEPS='coverage pytest-cov coveralls sphinx sphinx_rtd_theme'
export CONDA_DOWNLOAD='Miniconda3-latest-Linux-x86_64.sh'
export CONDA_DEPS='gammapy numpy astropy scipy matplotlib pytest pyyaml sphinx sphinx_rtd_theme'
;;
py36_st-no_dep-yes)
export PYTHON_VERSION="3.6"
export ST_INSTALL=''
export DOCKER_INSTALL=''
export CONDA_DOWNLOAD='Miniconda3-latest-Linux-x86_64.sh'
;;
py2_st-no_dep-yes)
export PYTHON_VERSION="2.7"
export ST_INSTALL=''
export DOCKER_INSTALL=''
export CONDA_DOWNLOAD='Miniconda2-latest-Linux-x86_64.sh'
;;
slac*)
export PYTHON_VERSION="2.7"
export CONDA_DOWNLOAD="Miniconda-latest-Linux-x86_64.sh"
export ST_INSTALL=""
export SLAC_ST_BUILD=true
export INST_DIR='/u/ek/echarles/dmcat/software/git-releases/FT_01-00-01_orig'
;;
esac
echo Running fake_travis for build $NAME
\rm -rf $CONDA_PATH
source condainstall.sh
bash travistests.sh
coveralls --rcfile='fermipy/tests/coveragerc'