Save CircleCI artifacts needed for release (#293)

* Save CircleCI artifacts needed for release

* Build and test otlp exporter
This commit is contained in:
Trask Stalnaker 2020-03-29 21:38:34 -07:00 committed by GitHub
parent 2b500788f4
commit 750a979331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 6 deletions

View File

@ -9,7 +9,6 @@ set -e
LIBS_DIR=./libs/
mkdir -p $LIBS_DIR >/dev/null 2>&1
for lib_path in workspace/*/build/libs; do
echo "saving libs in $lib_path"
cp $lib_path/*.jar $LIBS_DIR/
done
cp workspace/java-agent/build/libs/*.jar $LIBS_DIR/
cp workspace/auto-exporters/*/build/libs/*.jar $LIBS_DIR/
cp workspace/exporter-support/build/libs/*.jar $LIBS_DIR/

View File

@ -3,16 +3,19 @@ apply from: "${rootDir}/gradle/java.gradle"
dependencies {
testCompile project(':auto-tooling')
testCompile project(':auto-exporters:opentelemetry-auto-exporters-otlp')
testCompile project(':auto-exporters:opentelemetry-auto-exporters-jaeger')
testCompile project(':auto-exporters:opentelemetry-auto-exporters-logging')
}
tasks.withType(Test).configureEach() {
dependsOn ':auto-exporters:opentelemetry-auto-exporters-otlp:shadowJar'
dependsOn ':auto-exporters:opentelemetry-auto-exporters-jaeger:shadowJar'
dependsOn ':auto-exporters:opentelemetry-auto-exporters-logging:shadowJar'
doFirst {
systemProperty 'projectVersion', allprojects.version[0]
systemProperty 'adapterRoot', "${rootDir}/auto-exporters"
systemProperty 'otlpExporterJar', project(':auto-exporters:opentelemetry-auto-exporters-otlp').tasks.shadowJar.archivePath
systemProperty 'jaegerExporterJar', project(':auto-exporters:opentelemetry-auto-exporters-jaeger').tasks.shadowJar.archivePath
systemProperty 'loggingExporterJar', project(':auto-exporters:opentelemetry-auto-exporters-logging').tasks.shadowJar.archivePath
}

View File

@ -26,11 +26,14 @@ class ExporterAdaptersTest extends Specification {
def adapterRoot = System.getProperty("adapterRoot")
@Shared
def loggingExporterJar = System.getProperty("loggingExporterJar")
def otlpExporterJar = System.getProperty("otlpExporterJar")
@Shared
def jaegerExporterJar = System.getProperty("jaegerExporterJar")
@Shared
def loggingExporterJar = System.getProperty("loggingExporterJar")
@Shared
def jaegerDir = new File("${adapterRoot}/jaeger-adapter/build/libs")
@ -42,7 +45,7 @@ class ExporterAdaptersTest extends Specification {
file != null
where:
exporter << [loggingExporterJar, jaegerExporterJar]
exporter << [otlpExporterJar, jaegerExporterJar, loggingExporterJar]
}
def "test exporter load"() {
@ -65,6 +68,7 @@ class ExporterAdaptersTest extends Specification {
where:
exporter | classname
otlpExporterJar | 'io.opentelemetry.auto.exporters.otlp.OtlpSpanExporterFactory'
jaegerExporterJar | 'io.opentelemetry.auto.exporters.jaeger.JaegerExporterFactory'
loggingExporterJar | 'io.opentelemetry.auto.exporters.logging.LoggingExporterFactory'
}