Add CircleCI (#3)

Add an initial CircleCI config and additional make assemble and test targets for its use.
This commit is contained in:
Ryan Fitzpatrick 2020-08-21 14:40:55 -04:00 committed by GitHub
parent c40c4dab97
commit 13a9ceb0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 0 deletions

53
.circleci/config.yml Normal file
View File

@ -0,0 +1,53 @@
# Java Gradle CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/openjdk:8-jdk
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
environment:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx1g
GRADLE_OPTS: "-Dorg.gradle.workers.max=4"
TERM: dumb
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- gradle-{{ checksum "build.gradle" }}
# fallback to using the latest cache if no exact match is found
- gradle-
- run:
name: Assemble
command: make assemble
- save_cache:
paths:
- ~/.gradle
key: gradle-{{ checksum "build.gradle" }}
- run:
name: Tests
command: make test
- run:
name: Lint check
command: make check
- run:
name: Build validation
command: make build

View File

@ -15,3 +15,11 @@ check:
.PHONY: clean
clean:
./gradlew clean
.PHONY: assemble
assemble:
./gradlew assemble
.PHONY: test
test:
./gradlew test

View File

@ -1,4 +1,5 @@
# OpenTelemetry Java Contrib
[![Build status](https://img.shields.io/circleci/build/github/open-telemetry/opentelemetry-java-contrib?style=for-the-badge)](https://app.circleci.com/pipelines/github/open-telemetry/opentelemetry-java-contrib?branch=master)
This project is intended to provide helpful libraries and standalone OpenTelemetry-based utilities that don't fit
the express scope of the [OpenTelemetry Java](https://github.com/open-telemetry/opentelemetry-java) or