From ed916a5151e988c4ef0935b8f4d3024ca0ffe590 Mon Sep 17 00:00:00 2001
From: Lars Trieloff <trieloff@adobe.com>
Date: Thu, 22 Feb 2018 16:30:12 +0000
Subject: [PATCH] [trivial] add Junit reporting for CircleCI
---
.circleci/config.yml | 9 +++++++--
examples/docs/README.md | 2 +-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 6d846e1..bd38cb9 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -28,7 +28,7 @@ jobs:
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- - run: npm install
+ - run: npm install && npm i jasmine-xml-reporter
- save_cache:
paths:
@@ -36,7 +36,12 @@ jobs:
key: v1-dependencies-{{ checksum "package.json" }}
# run tests!
- - run: npm test
+ - run: ./node_modules/jasmine-xml-reporter/bin/jasmine.js --junitreport --output=junit
+
+ - store_test_results:
+ path: junit
+ - store_artifacts:
+ path: junit
- run: BUILD_TAG=$(./node_modules/.bin/npm-snapshot $CIRCLE_BUILD_NUM) echo 'export BUILD_TAG=$BUILD_TAG' >> $BASH_ENV
- run:
diff --git a/examples/docs/README.md b/examples/docs/README.md
index 80c6857..a28cb28 100644
--- a/examples/docs/README.md
+++ b/examples/docs/README.md
@@ -6,6 +6,7 @@
## /
+* [Abstract](./abstract.schema.md) – `https://example.com/schemas/abstract`
* [Arrays](./arrays.schema.md) – `https://example.com/schemas/arrays`
* [Complex References ](./complex.schema.md) – `https://example.com/schemas/complex`
* [Constant Types](./constants.schema.md) – `https://example.com/schemas/constants`
@@ -19,7 +20,6 @@
* [Extensible](./extensible.schema.md) – `https://example.com/schemas/extensible`
* [Simple](./simple.schema.md) – `https://example.com/schemas/simple`
* [Simple Types](./simpletypes.schema.md) – `https://example.com/schemas/simpletypes`
-* [Abstract](./abstract.schema.md) – `https://example.com/schemas/abstract`
## /subdir/
--
GitLab