forked from spacetelescope/calcos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
JenkinsfileRT
38 lines (34 loc) · 1.59 KB
/
JenkinsfileRT
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
// Obtain files from source control system.
// [skip ci] and [ci skip] have no effect here.
if (utils.scm_checkout(['skip_disable':true])) return
// Allow modification of the job configuration, affects all relevant build configs.
// Pass this object in the argument list to the`run()` function below to apply these settings to the job's execution.
jobconfig = new JobConfig()
jobconfig.post_test_summary = true
// Run nightly tests, which include the slow ones.
bc = new BuildConfig()
bc.nodetype = "linux"
bc.name = "release"
bc.env_vars = ['TEST_BIGDATA=https://bytesalad.stsci.edu/artifactory',
'lref=/grp/hst/cdbs/lref/']
bc.conda_channels = ['http://ssb.stsci.edu/astroconda']
bc.conda_packages = ['python=3.8']
// 'requests',
// 'numpy',
// 'stsci.tools']
bc.build_cmds = ["pip install ci-watson",
"pip install -e .[test]"]
bc.test_cmds = ["pytest tests --basetemp=tests_output --junitxml results.xml --bigdata --slow -v"]
bc.failedUnstableThresh = 1
bc.failedFailureThresh = 6
// Astropy dev and Python 3.8 (astropy dev requires python >= 3.8)
bc1 = utils.copy(bc)
bc1.name = "dev"
bc1.conda_packages[0] = "python=3.8"
bc1.build_cmds = ["pip install -e .[test]",
"pip install astropy>=0.0.dev0 --upgrade --no-deps",
"pip install pyyaml"]
// Iterate over configurations that define the (distributed) build matrix.
// Spawn a host of the given nodetype for each combination and run in parallel.
// Also apply the job configuration defined in `jobconfig` above.
utils.run([bc, bc1, jobconfig])