-
Notifications
You must be signed in to change notification settings - Fork 11
Running Fixinator on CircleCI
Pete Freitag edited this page Feb 26, 2019
·
2 revisions
You can setup CircleCI to automatically run a fixinator scan every time you commit code to your GitHub or Bitbucket repository.
In the root of your repository create a directory .circleci
and a file config.yml
with the following contents:
version: 2
jobs:
build:
docker:
- image: circleci/openjdk:11-jdk-stretch
steps:
- checkout
- run: curl --location -o /tmp/box.zip https://www.ortussolutions.com/parent/download/commandbox/type/bin
- run: unzip /tmp/box.zip -d /tmp/
- run: chmod a+x /tmp/box
- run: /tmp/box install fixinator
- run: mkdir /tmp/results
- run: /tmp/box fixinator path=. confidence=high resultFormat=junit resultFile=/tmp/results/fixinator-results.xml
- store_test_results:
path: /tmp/results/
- store_artifacts: # optional uploads the result file
path: /tmp/results/
Note that fixinator is creating a report file in JUnit format which Circle CI can then pick up and format in its results.