-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
43 lines (43 loc) · 1.53 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
pipeline {
agent none
stages {
stage ('Build') {
parallel {
stage('Build (Windows)') {
agent { label 'windows && amd64 && dlang' }
steps {
bat '"C:\\Program Files\\D\\dmd2\\windows\\bin\\dub.exe" clean'
bat '"C:\\Program Files\\D\\dmd2\\windows\\bin\\dub.exe" build -b release'
archiveArtifacts artifacts: 'dnes.exe', fingerprint: true
}
}
stage('Build (Linux)') {
agent { label 'linux && amd64 && dlang' }
steps {
sh 'dub clean'
sh 'dub build -b release'
archiveArtifacts artifacts: 'dnes', fingerprint: true
}
}
}
}
stage ('Test') {
parallel {
stage('Test (Windows)') {
agent { label 'windows && amd64 && dlang' }
steps {
bat '"C:\\Program Files\\D\\dmd2\\windows\\bin\\dub.exe" clean'
bat '"C:\\Program Files\\D\\dmd2\\windows\\bin\\dub.exe" test'
}
}
stage('Build (Linux)') {
agent { label 'linux && amd64 && dlang' }
steps {
sh 'dub clean'
sh 'dub test'
}
}
}
}
}
}