Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
version: 2
version: 2.1

commands:
setup_build_environment:
description: 'Checkout, update submodules, restore the cache, and setup docker'
steps:
- checkout
- run:
name: Generate cache key
command: find . -type f -name "*.gradle*" -o -name "gradle-wrapper*" -exec shasum {} + | sort > /tmp/checksum.txt && cat /tmp/checksum.txt
- restore_cache:
keys:
- v1-dependencies-{{ checksum "/tmp/checksum.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

jobs:
build:
# For testcontainers.org
Expand All @@ -10,22 +25,7 @@ jobs:
JVM_OPTS: -Xmx1g
TERM: dumb
steps:
- checkout
# TODO Task 'downloadDependencies' not found in root project 'hypertrace-otel-agent'.
# # Download and cache dependencies
# - restore_cache:
# keys:
# - v1-dependencies-{{ checksum "build.gradle.kts" }}
# # fallback to using the latest cache if no exact match is found
# - v1-dependencies-
#
#
# - run: ./gradlew downloadDependencies
#
# - save_cache:
# paths:
# - ~/.gradle
# key: v1-dependencies-{{ checksum "build.gradle.kts" }}
- setup_build_environment
- run: make build

muzzle:
Expand All @@ -37,13 +37,13 @@ jobs:
JVM_OPTS: -Xmx1g
TERM: dumb
steps:
- checkout
- setup_build_environment
- run: make muzzle
release-publish:
docker:
- image: circleci/openjdk:11.0.6-jdk-buster
steps:
- checkout
- setup_build_environment
- run: ./gradlew :tag -Prelease
- run: ./gradlew publish
- add_ssh_keys:
Expand Down