Skip to content

Commit

Permalink
Chore: calc fossa results in cirrus
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Jan 21, 2022
1 parent 0888454 commit b2b48c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 40 deletions.
40 changes: 0 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ cache-defaults: &cache-defaults
- -{{ checksum "package-lock.json" }}

parameters:
skip-fossa:
type: boolean
default: false
skip-coveralls:
type: boolean
default: false
Expand All @@ -29,16 +26,6 @@ aliases:
command: |
echo 'export DANGER_GITHUB_API_TOKEN=$(echo Z2hwXzFldFVxODNZTUhCa0ZQUjk0WVV1blFXZTFCVmkzajRSOEpxRQo= | base64 --decode)' >> $BASH_ENV
source $BASH_ENV
- &fossa-install
name: Install fossa
command: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
- &fossa-analize
name: Send package to fossa
command: fossa analyze
- &fossa-test
name: Check fossa results
command: fossa test
- &danger-pr
name: Run danger
command: npx danger ci -d .dangerfile.js
Expand Down Expand Up @@ -87,20 +74,10 @@ jobs:
install:
<<: *defaults
steps:
- when:
condition:
not: << pipeline.parameters.skip-fossa >>
steps:
- run: *fossa-install
- checkout
- run: *install
- run: *security
- run: *danger-pr
- when:
condition:
not: << pipeline.parameters.skip-fossa >>
steps:
- run: *fossa-analize
- save_cache: *cache-modules
test-security:
<<: *defaults
Expand Down Expand Up @@ -130,18 +107,6 @@ jobs:
not: << pipeline.parameters.skip-coveralls >>
steps:
- run: *coveralls
test-fossa:
<<: *defaults
steps:
- checkout
- when:
condition:
not: << pipeline.parameters.skip-fossa >>
steps:
- run: *fossa-install
- restore_cache:
<<: *cache-defaults
- run: *fossa-test
test-lint:
<<: *defaults
steps:
Expand Down Expand Up @@ -218,11 +183,6 @@ workflows:
- test-leaks:
requires:
- install
- test-fossa:
context: branches
requires:
- install
- test-package
- deploy:
context: npm-packages
requires:
Expand Down
13 changes: 13 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
container:
image: docker/fossa-analyzer

environment:
FOSSA_API_KEY: ENCRYPTED[!2c50354cec1793abe3c6b555b8121330149b461ee4e8d5ef810d467652b74352e5924ab613eea3ac002a3898c6c5a1ef!]

analyze_task:
script: fossa analyze

test_task:
depends_on:
- analyze
script: fossa test

0 comments on commit b2b48c1

Please sign in to comment.