aboutsummaryrefslogtreecommitdiff
path: root/libtest.groovy
blob: fbdfd8a9b95340d7d1f9fe157eeb22ed8106569d (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
// Obtain files from source control system.
if (utils.scm_checkout()) 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

// Define each build configuration, copying and overriding values as necessary.
bc0 = new BuildConfig()
bc0.nodetype = "RHEL-7"
bc0.name = "libtest"
bc0.build_cmds = ["true"]
bc0.conda_ver = '4.9.2'
bc0.conda_packages = [
    "python=3.7",
]
bc0.test_cmds = ["pip install pytest",
                 "pytest tests --basetemp=tests_output --junitxml results.xml --remote-data tests/"]
bc0.failedUnstableThresh = 1
bc0.failedFailureThresh = 6


// Iterate over configurations that define the (distibuted) 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([bc0, jobconfig])