blob: 7f83419f9819ad791ba7001d6547e3757dce1177 (
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
|
#!/bin/bash
source /eng/ssb/auto/astroconda/include/midnight_special.sh
source /eng/ssb/auto/astroconda/include/pre-common.sh
# Set context (used here and in post-common.sh)
name=conda
context=public
repo=http://ssb.stsci.edu/astroconda
# use RTX
test_from+='x'
# Activate environment
source activate rt_${context}27
# Update environment
conda update -q -y --override-channels -c $repo -c defaults --all
source /eng/ssb/auto/astroconda/include/post-common.sh
# Assign tests to run
tests=(
$test_from/astrolib
$test_from/stsci_python
$test_from/betadrizzle
$test_from/axe
$test_from/hstcal
$test_from/stsdas
)
# Nuke existing logs, run the tests, import the tests
set -x
[[ -d $LOGDIR ]] && [[ $LOGDIR != ^/$ ]] && rm -f "$LOGDIR/*"
pushd $LOGDIR
time pdkrun --parallel=${CPU_COUNT} -r "${tests[@]}"
retval=$?
popd
cat ${PDK_LOG}* | ssh iraf@ssb "irafdev ; pdk import -"
exit $retval
|