blob: a89ef28643e8ac4ebade5ab4fa7d5e09416f93d7 (
plain) (
blame)
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
|
#!/bin/bash
source /eng/ssb/auto/astroconda/include/midnight_special.sh
source /eng/ssb/auto/astroconda/include/pre-common.sh
repo_base=http://ssb.stsci.edu
contexts=( dev public )
versions=( 27 35 )
tree_base=$(dirname $test_from)
trees=( rt rtx )
echo '----'
echo 'Updating base installation:'
conda update -q -y --all
echo '----'
for context in "${contexts[@]}"
do
for version in "${versions[@]}"
do
case "$context" in
dev)
repo="$repo_base/conda-dev"
;;
public)
repo="$repo_base/astroconda"
;;
*)
echo "No repository available for: $context"
exit 1
;;
esac
environ="rt_${context}${version}"
if [[ ! -d ~/miniconda3/envs/$environ ]]; then
echo '!!!!'
echo "No Conda environment for: $environ"
echo "Skipping..."
continue
fi
echo '----'
echo "Updating $context from $repo:"
conda update -q -y --override-channels -c $repo -c defaults -n $environ --all
echo '----'
echo "Forcing pandokia to exist:"
conda install -q -y --override-channels -c $repo -c defaults -n $environ pandokia
done
done
echo '----'
echo 'Updating regression tests:'
for tree in "${trees[@]}"
do
base="$tree_base/$tree"
if [[ -d $base/.svn ]]; then
svn_update $base
fi
done
echo '----'
|