aboutsummaryrefslogtreecommitdiff
path: root/Jenkinsfile.test
blob: b8d40b17c9e029e511335bdabd8bca4e90214240 (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
if (utils.scm_checkout(['skip_disable':true])) return

def PYTEST = "pytest \
              -r s \
              --basetemp=test_outputs \
              --junit-xml=results.xml"

jobconfig = new JobConfig()
jobconfig.post_test_summary = true


bc0 = new BuildConfig()
bc0.nodetype = 'master'
bc0.name = 'First'
bc0.conda_packages = ['python=3.6',
                      'pytest=3.8.2']
bc0.build_cmds = ["ls -al",
                  "date"]
bc0.test_cmds = ["printenv | sort",
                 "${PYTEST}"]

bc1 = utils.copy(bc0)
bc1.name = 'Second'
bc1.env_vars = ['VAR_THREE=3',
                'VAR_FOUR=4']

utils.run([bc0, bc1])