summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-07 13:33:54 -0700
committermo khan <mo.khan@gmail.com>2020-03-07 13:33:54 -0700
commit5f7786bb4865a9d9622c3819d8e0b5b67ebf0cfa (patch)
tree793bb918edfcd8bdddb252a1a72b9403f85ddd3b
parentfcf555e12daabd7aedd0bea2c83915dee3ca71fd (diff)
Export junit report for integration tests
-rw-r--r--.gitignore3
-rw-r--r--.gitlab/test.yml7
-rwxr-xr-xbin/setup2
3 files changed, 9 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 025d748..74bd0df 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
*.gem
+/.bundle
+/rspec.xml
Dockerfile.env
pkg
tmp
-/rspec.xml
diff --git a/.gitlab/test.yml b/.gitlab/test.yml
index 074d13a..159ca20 100644
--- a/.gitlab/test.yml
+++ b/.gitlab/test.yml
@@ -32,4 +32,9 @@ integration:
entrypoint: [""]
stage: test
script:
- - bash -lc "bundle install --with development test && bundle exec rspec spec/integration"
+ - bash -lc "./bin/test spec/integration --format RspecJunitFormatter --out rspec.xml"
+ artifacts:
+ paths:
+ - rspec.xml
+ reports:
+ junit: rspec.xml
diff --git a/bin/setup b/bin/setup
index da654a1..5fa5ac9 100755
--- a/bin/setup
+++ b/bin/setup
@@ -5,4 +5,4 @@ set -e
cd "$(dirname "$0")/.."
gem install bundler --conservative -v '~> 2.0'
-bundle install
+bundle install --with "development:test"