Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit bc87b63

Browse files
committed
upload FOSSA analysis from CI build
1 parent 4b744f8 commit bc87b63

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.circleci/config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,17 @@ jobs:
1515
- run:
1616
name: Save test results
1717
command: |
18-
mkdir -p ~/junit/
18+
mkdir -p ~/junit/;
1919
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
2020
when: always
2121
- store_test_results:
2222
path: ~/junit
2323
- store_artifacts:
2424
path: ~/junit
25+
- run: Upload FOSSA analysis (from master only)
26+
command: |
27+
if [[ ( -n "$FOSSA_API_KEY" ) && ( "$CIRCLE_BRANCH" == "master" ) ]]; then
28+
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash;
29+
fossa init;
30+
FOSSA_API_KEY=$FOSSA_API_KEY fossa -p java-client;
31+
fi

0 commit comments

Comments
 (0)