forked from spacetelescope/calcos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
35 lines (31 loc) · 1.3 KB
/
Jenkinsfile
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
// Obtain files from source control system.
if (utils.scm_checkout()) return
// Define each build configuration, copying and overriding values as necessary.
bc0 = new BuildConfig()
bc0.nodetype = "python3.8"
bc0.name = "egg"
bc0.build_cmds = ["pip install numpy",
"python setup.py egg_info"]
bc1 = utils.copy(bc0)
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_packages = ['python=3.8',
// 'requests',
// 'numpy',
// 'stsci.tools']
bc1.build_cmds = ["pip install numpy>=1.20"]
bc1.build_cmds = ["pip install -e .[test]"]
bc1.test_cmds = ["pytest tests --basetemp=tests_output --junitxml results.xml --bigdata -v"]
bc1.failedUnstableThresh = 1
bc1.failedFailureThresh = 6
// Run with astropy dev and Python 3.8
bc2 = utils.copy(bc1)
bc2.name = "dev"
bc2.conda_packages[0] = "python=3.8"
bc2.build_cmds = ["pip install -e .[test]",
"pip install astropy>=0.0.dev0 --upgrade --no-deps",
"pip install pyyaml"]
// 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([bc0, bc1, bc2])