Skip to content

Commit dc7e73b

Browse files
committed
first commit
0 parents  commit dc7e73b

33 files changed

+1843
-0
lines changed

.circleci/config.yml

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
version: 2.1
2+
3+
orbs:
4+
codecov: codecov/codecov@1
5+
snyk: snyk/[email protected]
6+
7+
executors:
8+
java:
9+
docker:
10+
- image: cimg/openjdk:11.0
11+
environment:
12+
JVM_OPTS: -Xmx2g
13+
TERM: dumb
14+
15+
commands:
16+
gradle:
17+
description: 'Run the provided gradle command'
18+
parameters:
19+
args:
20+
type: string
21+
when:
22+
default: "on_success"
23+
type: enum
24+
enum: ["on_fail", "on_success", "always"]
25+
steps:
26+
- run:
27+
name: << parameters.args >>
28+
command: ./gradlew << parameters.args >> --info --max-workers=2 --continue
29+
when: << parameters.when >>
30+
setup_build_environment:
31+
description: 'Generates cache key from a hash of all gradle files'
32+
steps:
33+
- checkout
34+
- run:
35+
name: Generate cache key
36+
command: find . -type f -name "*.gradle*" -o -name "gradle-wrapper*" -exec shasum {} + | sort > /tmp/checksum.txt && cat /tmp/checksum.txt
37+
- restore_cache:
38+
keys:
39+
- v1-dependencies-{{ checksum "/tmp/checksum.txt" }}
40+
# fallback to using the latest cache if no exact match is found
41+
- v1-dependencies-
42+
populate_and_save_cache:
43+
description: 'Downloads all gradle dependencies and uploads cache for later use'
44+
steps:
45+
- gradle:
46+
args: downloadDependencies
47+
- save_cache:
48+
paths:
49+
- ~/.gradle
50+
key: v1-dependencies-{{ checksum "/tmp/checksum.txt" }}
51+
52+
jobs:
53+
build:
54+
executor: java
55+
steps:
56+
- setup_build_environment
57+
- populate_and_save_cache
58+
- gradle:
59+
args: build
60+
- gradle:
61+
args: jacocoTestReport
62+
- gradle:
63+
args: copyAllReports --output-dir=/tmp/test-reports
64+
when: always
65+
- codecov/upload
66+
- store_test_results:
67+
path: /tmp/test-reports
68+
- store_artifacts:
69+
path: /tmp/test-reports
70+
destination: reports
71+
72+
publish:
73+
executor: java
74+
steps:
75+
- setup_build_environment
76+
- gradle:
77+
args: :tag -Prelease
78+
- add_ssh_keys:
79+
fingerprints:
80+
- '19:e7:38:2f:12:38:b0:c6:67:91:c6:4a:d2:7b:c6:53'
81+
- run: git push origin $(./gradlew -q :printVersion)
82+
- gradle:
83+
args: publish
84+
snyk-scan:
85+
executor:
86+
name: java
87+
environment:
88+
GRADLE_OPTS: -Dorg.gradle.workers.max=1 # Snyk doesn't handle parallelism well
89+
steps:
90+
- setup_build_environment
91+
- snyk/scan:
92+
additional-arguments: --all-sub-projects
93+
94+
workflows:
95+
version: 2
96+
build-and-publish:
97+
jobs:
98+
- build
99+
- snyk-scan:
100+
context: hypertrace-vulnerability-scanning
101+
- publish:
102+
context: hypertrace-publishing
103+
requires:
104+
- build
105+
- snyk-scan
106+
filters:
107+
branches:
108+
only:
109+
- master

.github/CODEOWNERS

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Each line is a file pattern followed by one or more owners.
2+
3+
# global
4+
* @buchi-busireddy @tim-mwangi @surajpuvvada @avinashkolluru

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore Gradle project-specific cache directory
2+
.gradle
3+
4+
# Ignore Gradle build output directory
5+
build
6+
7+
.idea

0 commit comments

Comments
 (0)