Skip to content

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.

Create a .circleci/config.yml File

In the root of your repository create a directory .circleci and a file config.yml with the following contents:

version: 2 
      - image: circleci/openjdk:11-jdk-stretch 
      - checkout
      - run: curl --location -o /tmp/
      - run: unzip /tmp/ -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.

You can’t perform that action at this time.