forked from Catrobat/Catty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
54 lines (49 loc) · 1.25 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env groovy
pipeline {
agent {
label 'MAC'
}
options {
timeout(time: 2, unit: 'HOURS')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '30', artifactNumToKeepStr: '30'))
}
triggers {
issueCommentTrigger('.*test this please.*')
}
stages {
stage('Unlock keychain') {
steps {
withCredentials([usernamePassword(credentialsId: 'eb111b76-63f8-4546-bc26-5fcb94721e1a', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME')]) {
script {
unlockMACKeychain "${PASSWORD}"
}
}
}
}
stage('Prepare') {
steps {
sh 'make init'
}
}
stage('Build') {
steps {
sh 'cd src && fastlane build_catty'
}
}
stage('Test') {
steps {
sh 'cd src && fastlane tests'
}
}
}
post {
always {
archiveArtifacts(artifacts: 'src/fastlane/builds/', allowEmptyArchive: true)
archiveArtifacts(artifacts: 'src/fastlane/Install.html', allowEmptyArchive: true)
archiveArtifacts(artifacts: 'src/fastlane/Adhoc.plist', allowEmptyArchive: true)
sh 'cd src && fastlane test_reports'
junit testResults: 'src/fastlane/test_output/TestSummaries.xml', allowEmptyResults: true
}
}
}