forked from spacetelescope/acstools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfileRT
33 lines (29 loc) · 1.4 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
// 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 = "RHEL-6"
bc.name = "release"
bc.env_vars = ['TEST_BIGDATA=https://bytesalad.stsci.edu/artifactory',
'jref=/grp/hst/cdbs/jref/']
bc.conda_channels = ['http://ssb.stsci.edu/astroconda']
bc.conda_packages = ['python=3.6']
bc.build_cmds = ["pip install -e .[test,all]"]
bc.test_cmds = ["pytest --basetemp=tests_output --junitxml results.xml --bigdata --slow -v"]
bc.failedUnstableThresh = 1
bc.failedFailureThresh = 6
// Astropy dev and Python 3.8
bc1 = utils.copy(bc)
bc1.name = "dev"
bc1.conda_packages[0] = "python=3.8"
bc1.build_cmds = ["pip install git+https://github.com/astropy/astropy.git#egg=astropy --upgrade --no-deps",
"pip install -e .[test,all]"]
// Iterate over configurations that define the (distributed) build matrix.
// Spawn a host (or workdir) for each combination and run in parallel.
// Also apply the job configuration defined in `jobconfig` above.
utils.run([bc, bc1, jobconfig])