forked from sovrin-foundation/sovrin-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
44 lines (33 loc) · 1022 Bytes
/
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
36
37
38
39
40
41
42
43
44
#!groovy
@Library('SovrinHelpers') _
def name = 'sovrinagent'
def testUbuntu = {
try {
echo 'Ubuntu Test: Checkout csm'
checkout scm
echo 'Ubuntu Test: Build docker image'
orientdb.start()
def testEnv = dockerHelpers.build(name)
testEnv.inside('--network host') {
echo 'Ubuntu Test: Install dependencies'
//testHelpers.install()
sh "pip install pytest"
sh "pip install -r requirements.txt"
echo 'Ubuntu Test: Test'
testHelpers.testJUnit(resFile: "test-result.${NODE_NAME}.xml")
}
}
finally {
echo 'Ubuntu Test: Cleanup'
orientdb.stop()
step([$class: 'WsCleanup'])
}
}
def testWindows = {
echo 'TODO: Implement me'
}
def testWindowsNoDocker = {
echo 'TODO: Implement me'
}
//testAndPublish(name, [ubuntu: testUbuntu, windows: testWindowsNoDocker, windowsNoDocker: testWindowsNoDocker])
testAndPublish(name, [ubuntu: testUbuntu], false)