summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2019-08-06 21:12:18 -0400
committerAdam Kocoloski <kocolosk@apache.org>2019-08-08 16:21:51 -0400
commit6b410aabc0e0cb740fd24e9a4478882aefea7220 (patch)
tree914d0f84d8fdaa161214306a70df216768a0785c
parentc4125a8635d0c15db67019e5fa5d84486eadc4d7 (diff)
downloadcouchdb-6b410aabc0e0cb740fd24e9a4478882aefea7220.tar.gz
Capture EUnit and ExUnit test results for Jenkins
-rw-r--r--Jenkinsfile38
-rw-r--r--mix.exs1
-rw-r--r--rebar.config.script2
3 files changed, 40 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index b2deb8ef8..f37e9bf14 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -144,6 +144,9 @@ pipeline {
} // withEnv
} // steps
post {
+ always {
+ junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml'
+ }
cleanup {
sh 'rm -rf $COUCHDB_IO_LOG_DIR'
}
@@ -173,6 +176,11 @@ pipeline {
unstash 'tarball'
sh( script: build_and_test )
}
+ post {
+ always {
+ junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml'
+ }
+ }
}
stage('Build CouchDB packages') {
steps {
@@ -215,6 +223,11 @@ pipeline {
unstash 'tarball'
sh( script: build_and_test )
}
+ post {
+ always {
+ junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml'
+ }
+ }
}
stage('Build CouchDB packages') {
steps {
@@ -258,6 +271,11 @@ pipeline {
unstash 'tarball'
sh( script: build_and_test )
}
+ post {
+ always {
+ junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml'
+ }
+ }
}
stage('Build CouchDB packages') {
steps {
@@ -300,6 +318,11 @@ pipeline {
unstash 'tarball'
sh( script: build_and_test )
}
+ post {
+ always {
+ junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml'
+ }
+ }
}
stage('Build CouchDB packages') {
steps {
@@ -342,6 +365,11 @@ pipeline {
unstash 'tarball'
sh( script: build_and_test )
}
+ post {
+ always {
+ junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml'
+ }
+ }
}
stage('Build CouchDB packages') {
steps {
@@ -384,6 +412,11 @@ pipeline {
unstash 'tarball'
sh( script: build_and_test )
}
+ post {
+ always {
+ junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml'
+ }
+ }
}
stage('Build CouchDB packages') {
steps {
@@ -426,6 +459,11 @@ pipeline {
unstash 'tarball'
sh( script: build_and_test )
}
+ post {
+ always {
+ junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml'
+ }
+ }
}
stage('Build CouchDB packages') {
steps {
diff --git a/mix.exs b/mix.exs
index 2e213aeb1..43c8b6d93 100644
--- a/mix.exs
+++ b/mix.exs
@@ -35,6 +35,7 @@ defmodule CouchDBTest.Mixfile do
# Run "mix help deps" to learn about dependencies.
defp deps() do
[
+ {:junit_formatter, "~> 3.0", only: [:dev, :test, :integration]},
{:httpotion, "~> 3.0", only: [:dev, :test, :integration], runtime: false},
{:jiffy, path: Path.expand("src/jiffy", __DIR__)},
{:ibrowse,
diff --git a/rebar.config.script b/rebar.config.script
index 6445057e7..c38b6e235 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -156,7 +156,7 @@ AddConfig = [
{sub_dirs, SubDirs},
{lib_dirs, ["src"]},
{erl_opts, [{i, "../"} | ErlOpts]},
- {eunit_opts, [verbose]},
+ {eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]},
{plugins, [eunit_plugin]},
{dialyzer, [
{plt_location, local},