-
Notifications
You must be signed in to change notification settings - Fork 27
/
JenkinsfileRT
40 lines (35 loc) · 1.63 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
39
40
// 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://conda.anaconda.org/conda-forge/']
bc.conda_packages = ['python=3.9']
bc.build_cmds = ["pip install codecov pytest-cov 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
// Dev dependencies
bc1 = utils.copy(bc)
bc1.name = "dev"
bc1.conda_packages[0] = "python=3.10"
bc1.build_cmds[1] = "pip install -r requirements-dev.txt --upgrade -e '.[test]'"
//bc1.build_cmds = ["pip install -e .[test]",
// "pip install astropy>=0.0.dev0 --upgrade --no-deps",
// "pip install pyyaml"]
bc2 = utils.copy(bc)
bc2.name = '3.11'
bc2.conda_packages = ['python=3.11']
// 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, bc2, jobconfig])