forked from Catrobat/Catroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.OutgoingNetworkCallsTests
59 lines (52 loc) · 1.65 KB
/
Jenkinsfile.OutgoingNetworkCallsTests
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!groovy
class DockerParameters {
// 'docker build' would normally copy the whole build-dir to the container, changing the
// docker build directory avoids that overhead
def dir = 'docker'
def args = '--device /dev/kvm:/dev/kvm ' +
' -m=12G '
def label = 'LimitedEmulator'
def image = 'catrobat/catrobat-android:api33'
}
def d = new DockerParameters()
pipeline {
agent {
docker {
image d.image
args d.args
label d.label
alwaysPull true
}
}
environment {
ANDROID_VERSION = 33
}
options {
timeout(time: 2, unit: 'HOURS')
timestamps()
}
stages {
stage('End to end tests requiring share authentication') {
steps {
sh '''./gradlew -PenableCoverage -Pemulator=android${ANDROID_VERSION} \
startEmulator createCatroidDebugAndroidTestCoverageReport \
-Pandroid.testInstrumentationRunnerArguments.class=org.catrobat.catroid.testsuites.OutgoingNetworkCallsTestSuite'''
}
post {
always {
junit '**/*TEST*.xml'
sh './gradlew stopEmulator clearAvdStore'
archiveArtifacts 'logcat.txt'
}
}
}
}
post {
always {
step([$class: 'LogParserPublisher', failBuildOnError: true, projectRulePath: 'buildScripts/log_parser_rules', unstableOnWarning: true, useProjectRule: true])
}
unsuccessful {
notifyChat(['#system-tests'])
}
}
}