Skip to content

Commit

Permalink
Merge pull request #7 from Workiva/cut-test-release
Browse files Browse the repository at this point in the history
O11Y-1062: Create version 0.0.1
  • Loading branch information
rmconsole3-wf authored Aug 27, 2021
2 parents 587cb9c + 5a03d36 commit 07059f4
Show file tree
Hide file tree
Showing 36 changed files with 44 additions and 449 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
FROM google/dart:2.13
WORKDIR /build

RUN apt update && apt install -y make protobuf-compiler

COPY pubspec.yaml .
RUN pub get

COPY . .

RUN make init analyze test
RUN ./package.sh

ARG BUILD_ARTIFACTS_PUB=/build/pub_package.pub.tgz

FROM scratch
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:workiva_analysis_options/v1.recommended.yaml
analyzer:
exclude:
- src/sdk/trace/exporters/opentelemetry
- lib/src/sdk/trace/exporters/opentelemetry
22 changes: 22 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
set -e

mkdir pub_temp

# Make a copy of the directories we want to publish, with symlinks expanded
[ -d lib ] && cp -R -L lib pub_temp/lib

# Make a copy of the files we want to publish
[ -f CHANGELOG.md ] && cp CHANGELOG.md pub_temp/
[ -f LICENSE ] && cp LICENSE pub_temp/
[ -f README.md ] && cp README.md pub_temp/
[ -f analysis_options.yaml ] && cp analysis_options.yaml pub_temp/
[ -f pubspec.yaml ] && cp pubspec.yaml pub_temp/

# Generate the final publishable artifact
cd pub_temp
tar czf ../pub_package.pub.tgz $(ls -d CHANGELOG.md LICENSE README.md analysis_options.yaml build.yaml pubspec.yaml lib/ 2>/dev/null)
cd ../

# Clean up
rm -rf pub_temp
Empty file.
12 changes: 0 additions & 12 deletions packages/opentelemetry_api/lib/opentelemetry_api.dart

This file was deleted.

12 changes: 0 additions & 12 deletions packages/opentelemetry_api/lib/src/context.dart

This file was deleted.

47 changes: 0 additions & 47 deletions packages/opentelemetry_api/lib/src/trace/noop_span.dart

This file was deleted.

69 changes: 0 additions & 69 deletions packages/opentelemetry_api/lib/src/trace/span.dart

This file was deleted.

23 changes: 0 additions & 23 deletions packages/opentelemetry_api/lib/src/trace/span_context.dart

This file was deleted.

7 changes: 0 additions & 7 deletions packages/opentelemetry_api/lib/src/trace/span_kind.dart

This file was deleted.

11 changes: 0 additions & 11 deletions packages/opentelemetry_api/lib/src/trace/status.dart

This file was deleted.

9 changes: 0 additions & 9 deletions packages/opentelemetry_api/lib/src/trace/trace_state.dart

This file was deleted.

36 changes: 0 additions & 36 deletions packages/opentelemetry_api/lib/src/trace/tracer.dart

This file was deleted.

11 changes: 0 additions & 11 deletions packages/opentelemetry_api/lib/src/trace/tracer_provider.dart

This file was deleted.

12 changes: 0 additions & 12 deletions packages/opentelemetry_api/lib/src/trace/utils.dart

This file was deleted.

12 changes: 0 additions & 12 deletions packages/opentelemetry_api/pubspec.yaml

This file was deleted.

Empty file.
Loading

0 comments on commit 07059f4

Please sign in to comment.