forked from spacetelescope/stistools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
19 lines (17 loc) · 851 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Obtain files from source control system.
if (utils.scm_checkout()) return
// Define each build configuration, copying and overriding values as necessary.
bc1 = new BuildConfig()
bc1.nodetype = "linux"
bc1.name = "release"
// Would be nice if Jenkins can access /grp/hst/cdbs/xxxx directly.
bc1.env_vars = ['TEST_BIGDATA=https://bytesalad.stsci.edu/artifactory']
bc1.conda_channels = ['http://ssb.stsci.edu/astroconda']
bc1.conda_packages = ['python=3.6', 'pytest', 'crds', 'hstcal']
bc1.build_cmds = ["pip install -e .[test,all]"]
bc1.test_cmds = ["pytest --basetemp=tests_output --junitxml results.xml --bigdata -v"]
bc1.failedUnstableThresh = 1
bc1.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.
utils.run([bc1])