Skip to content

Commit e89d222

Browse files
authored
Add fossa analyze script (#479)
1 parent cdd9308 commit e89d222

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.buildkite/pipeline.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
steps:
2+
- label: "fossa analyze"
3+
agents:
4+
queue: "init"
5+
docker: "*"
6+
command: ".buildkite/scripts/fossa.sh"
27
- label: ":java: Unit test with test services"
38
agents:
49
queue: "workers"
@@ -28,4 +33,4 @@ steps:
2833
- docker-compose#v3.0.0:
2934
run: unit-test-docker-sticky-off
3035
config: docker/buildkite/docker-compose.yaml
31-
- wait
36+
- wait

.buildkite/scripts/fossa.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -exo pipefail
4+
5+
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash -s -- -b ~/
6+
7+
~/fossa init
8+
~/fossa analyze
9+
10+
# Capture the exit status
11+
EXIT_STATUS=$?
12+
13+
echo "fossa script exits with status $EXIT_STATUS"
14+
exit $EXIT_STATUS

.fossa.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
cli:
3+
server: https://app.fossa.com
4+
fetcher: custom
5+
project: [email protected]:uber/cadence-java-client.git
6+
analyze:
7+
modules:
8+
- name: .
9+
type: gradle
10+
target: ':'
11+
path: .

0 commit comments

Comments
 (0)