add badge
This commit is contained in:
Vendored
+10
@@ -1,3 +1,5 @@
|
|||||||
|
def unittestBadge = addEmbeddableBadgeConfiguration(id: "unittest", subject: "unit test")
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
dockerfile true
|
dockerfile true
|
||||||
@@ -40,10 +42,18 @@ pipeline {
|
|||||||
|
|
||||||
stage("test"){
|
stage("test"){
|
||||||
steps{
|
steps{
|
||||||
|
script{
|
||||||
|
unittestBadge.setStatus('running')
|
||||||
|
try{
|
||||||
sh '''
|
sh '''
|
||||||
cd build
|
cd build
|
||||||
ctest --output_on_failure
|
ctest --output_on_failure
|
||||||
'''
|
'''
|
||||||
|
}catch(Exception error){
|
||||||
|
unittestBadge.setStatus('failed')
|
||||||
|
error 'unittest failed'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
# CocoaTweet
|
# CocoaTweet
|
||||||
This is a library for using Twitter API from C++
|
This is a library for using Twitter API from C++
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user