Add CircleCI (#3)
Add an initial CircleCI config and additional make assemble and test targets for its use.
This commit is contained in:
parent
c40c4dab97
commit
13a9ceb0a1
|
|
@ -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
|
||||
8
Makefile
8
Makefile
|
|
@ -15,3 +15,11 @@ check:
|
|||
.PHONY: clean
|
||||
clean:
|
||||
./gradlew clean
|
||||
|
||||
.PHONY: assemble
|
||||
assemble:
|
||||
./gradlew assemble
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
./gradlew test
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
# OpenTelemetry Java Contrib
|
||||
[](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
|
||||
|
|
|
|||
Loading…
Reference in New Issue