forked from NetLogo/NetLogo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
63 lines (55 loc) · 1.42 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
55
56
57
58
59
60
61
62
63
#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('Start') {
steps {
library 'netlogo-shared'
sendNotifications('NetLogo/NetLogo', 'STARTED')
}
}
stage('Build') {
steps {
sh 'git submodule foreach git reset --hard'
sh 'git submodule update --init'
sh "./sbt update"
sh "./sbt all"
}
}
stage('Test') {
steps {
sh 'git submodule update --init'
sh "./sbt depend"
sh "./sbt headless/depend"
sh "./sbt parserJS/test"
sh "./sbt parserJVM/test"
sh "./sbt netlogo/test:fast"
sh "./sbt nogen netlogo/test:fast"
sh "./sbt threed netlogo/test:fast"
sh "./sbt headless/test:fast"
sh "./sbt netlogo/test:medium"
sh "./sbt nogen netlogo/test:medium"
sh "./sbt headless/test:medium"
sh "./sbt nogen headless/test:medium"
sh "./sbt netlogo/test:slow"
sh "./sbt threed netlogo/test:slow"
sh "./sbt netlogo/test:extensionTests"
junit 'netlogo-*/target/test-reports/*.xml'
}
}
}
post {
failure {
library 'netlogo-shared'
sendNotifications('NetLogo/NetLogo', 'FAILURE')
}
success {
library 'netlogo-shared'
sendNotifications('NetLogo/NetLogo', 'SUCCESS')
}
unstable {
library 'netlogo-shared'
sendNotifications('NetLogo/NetLogo', 'UNSTABLE')
}
}
}