summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:49:10 +1200
committerJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:49:10 +1200
commitd24f813f3f2a05c112e803e4256b53535895fc98 (patch)
tree601e6ae9a1cd44bcfdcf91739a5ca36aedd827c9 /Jenkinsfile
Initial mirror commitHEADmaster
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..2c67bd9
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,36 @@
+node {
+ stage('Checkout') {
+ checkout scm
+ }
+
+ stage('Build') {
+ if(fileExists('Makefile'))
+ sh 'make distclean'
+ sh '''
+ qmake
+ make -j4
+ '''
+ }
+
+ stage('Build test') {
+ if(fileExists('tests/unit/Makefile'))
+ sh '''
+ cd tests/unit
+ make distclean
+ '''
+ sh '''
+ cd tests/unit
+ qmake
+ make -j4
+ '''
+ }
+
+ stage('Run tests') {
+ sh '''
+ cd tests/unit
+ xvfb-run ./unittest --gtest_output=xml:gtestreport.xml
+ '''
+ junit 'tests/unit/*.xml'
+ }
+}
+