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

Commit 53f6286

Browse files
authored
Merge pull request #68 from launchdarkly/eb/ch16651/fossa
upload FOSSA analysis from CI build
2 parents 4b744f8 + 5c842aa commit 53f6286

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,18 @@ 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:
26+
name: Upload FOSSA analysis (from master only)
27+
command: |
28+
if [[ ( -n "$FOSSA_API_KEY" ) && ( "$CIRCLE_BRANCH" == "master" ) ]]; then
29+
curl -s -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash;
30+
fossa init;
31+
FOSSA_API_KEY=$FOSSA_API_KEY fossa;
32+
fi

0 commit comments

Comments
 (0)