Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Improve extension template brakeman CI config

Damian Legawiecd749be490fc9
diff --git a/cli/lib/spree_cli/templates/extension/.circleci/config.yml b/cli/lib/spree_cli/templates/extension/.circleci/config.yml
index 65b1746979..1b99d3cae7 100644
--- a/cli/lib/spree_cli/templates/extension/.circleci/config.yml
+++ b/cli/lib/spree_cli/templates/extension/.circleci/config.yml
@@ -110,12 +110,6 @@ jobs:
keys:
- spree-bundle-{{ .Branch }}
- spree-bundle
- - run:
- name: Add keyserver
- command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
- - run:
- name: Install libvips
- command: sudo apt-get update && sudo apt-get install libvips
- run:
name: Set bundle path
command: bundle config --local path vendor/bundle
@@ -125,7 +119,16 @@ jobs:
bundle check || bundle install
- run:
name: Brakeman
- command: bundle exec brakeman --exit-on-warn --exit-on-error
+ command: bundle exec brakeman --exit-on-warn --exit-on-error -o brakeman.json -o brakeman.html
+ - run:
+ name: Move brakeman reports to artifacts directory
+ command: |
+ mkdir -p /tmp/test-artifacts/
+ mv brakeman.json /tmp/test-artifacts/
+ mv brakeman.html /tmp/test-artifacts/
+ - store_artifacts:
+ path: /tmp/test-artifacts
+ destination: brakeman-reports
workflows:
version: 2
@@ -140,4 +143,4 @@ workflows:
- bundle
- brakeman:
requires:
- - bundle
+ - bundle
\ No newline at end of file