Skip to content

Commit

Permalink
chore: prune down to just plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Apr 15, 2020
1 parent 7412d9b commit fe6d846
Show file tree
Hide file tree
Showing 679 changed files with 36 additions and 33,049 deletions.
86 changes: 6 additions & 80 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,11 @@ mysql_service: &mysql_service
MYSQL_ROOT_PASSWORD: rootpw

cache_1: &cache_1
key: npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-F267A71D
key: npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
paths:
- ./node_modules
- ./package-lock.json
- packages/opentelemetry-api/node_modules
- packages/opentelemetry-base/node_modules
- packages/opentelemetry-context-async-hooks/node_modules
- packages/opentelemetry-context-base/node_modules
- packages/opentelemetry-context-zone/node_modules
- packages/opentelemetry-context-zone-peer-dep/node_modules
- packages/opentelemetry-core/node_modules
- packages/opentelemetry-exporter-jaeger/node_modules
- packages/opentelemetry-exporter-prometheus/node_modules
- packages/opentelemetry-exporter-zipkin/node_modules
- packages/opentelemetry-metrics/node_modules
- packages/opentelemetry-node/node_modules
- packages/opentelemetry-plugin-dns/node_modules
- packages/opentelemetry-shim-opentracing/node_modules
- packages/opentelemetry-tracing/node_modules
- packages/opentelemetry-web/node_modules

cache_2: &cache_2
key: npm-cache-02-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-F267A71D
paths:
- packages/opentelemetry-plugin-grpc/node_modules
- packages/opentelemetry-plugin-http/node_modules
- packages/opentelemetry-plugin-ioredis/node_modules
Expand All @@ -74,10 +55,8 @@ cache_2: &cache_2
- packages/opentelemetry-plugin-https/node_modules
- packages/opentelemetry-plugin-postgres/opentelemetry-plugin-pg-pool/node_modules
- packages/opentelemetry-plugin-mysql/node_modules
- packages/opentelemetry-exporter-collector/node_modules
- packages/opentelemetry-plugin-xml-http-request/node_modules
- packages/opentelemetry-plugin-express/node_modules
- packages/opentelemetry-resources/node_modules

node_unit_tests: &node_unit_tests
resource_class: large
Expand All @@ -99,9 +78,6 @@ node_unit_tests: &node_unit_tests
- restore_cache:
keys:
- npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-F267A71D
- restore_cache:
keys:
- npm-cache-02-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-F267A71D
- run:
name: Install Root Dependencies
command: npm install --ignore-scripts
Expand All @@ -110,8 +86,6 @@ node_unit_tests: &node_unit_tests
command: npx lerna bootstrap --no-ci
- save_cache:
<<: *cache_1
- save_cache:
<<: *cache_2
- run:
name: Unit tests
command: npm run test
Expand Down Expand Up @@ -139,9 +113,6 @@ browsers_unit_tests: &browsers_unit_tests
- restore_cache:
keys:
- npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-F267A71D
- restore_cache:
keys:
- npm-cache-02-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-F267A71D
- run:
name: Install Root Dependencies
command: npm install --ignore-scripts
Expand All @@ -150,8 +121,6 @@ browsers_unit_tests: &browsers_unit_tests
command: npx lerna bootstrap --no-ci
- save_cache:
<<: *cache_1
- save_cache:
<<: *cache_2
- run:
name: Unit tests
command: npm run test:browser
Expand All @@ -160,60 +129,25 @@ browsers_unit_tests: &browsers_unit_tests
command: if [ "$CIRCLE_NODE_VERSION" = "v12" ]; then npm run codecov:browser; fi

jobs:
lint_&_docs:
lint:
docker:
- image: node:12
environment:
NPM_CONFIG_UNSAFE_PERM: true
steps:
- checkout
- run:
name: Install minimal doc and lint modules globally
command: npm i -g tslint lerna typedoc linkinator typescript tslint-consistent-codestyle tslint-microsoft-contrib
name: Install minimal lint modules globally
command: npm i -g tslint lerna typescript tslint-consistent-codestyle tslint-microsoft-contrib
- run:
name: Install gts version 1.1.0 globally
command: npm i -g gts@1.1.0
- run:
name: Symlink global modules into all lerna packages
command: lerna exec 'npm link tslint lerna typedoc linkinator typescript gts tslint-consistent-codestyle tslint-microsoft-contrib'
command: lerna exec 'npm link tslint lerna typescript gts tslint-consistent-codestyle tslint-microsoft-contrib'
- run:
name: Check code style and linting
command: npm run lint
- run:
name: Install doc dependencies
command: lerna bootstrap --no-ci --scope @opentelemetry/api --include-filtered-dependencies -- --only dev
- run:
name: Docs tests
command: npm run docs-test
- persist_to_workspace:
root: packages/opentelemetry-api/docs
paths:
- out
- run:
name: Install minimal modules to lint examples
command: npm i --no-save eslint eslint-plugin-import eslint-config-airbnb-base
- run:
name: Lint examples
command: npm run lint:examples
docs-deploy:
docker:
- image: node:12
steps:
- checkout
- attach_workspace:
at: packages/opentelemetry-api/docs
- run:
name: Install and configure dependencies
command: |
npm install --silent --no-save gh-pages
git config user.email noreply@opentelemetry.io
git config user.name "ci-build"
- add_ssh_keys:
fingerprints:
- "1d:a3:60:b5:b4:8d:e7:8a:96:ce:6a:0a:e9:58:4c:54"
- run:
name: Deploy docs to gh-pages branch
command: gh-pages --dist packages/opentelemetry-api/docs/out
node8:
docker:
- image: node:8
Expand Down Expand Up @@ -259,18 +193,10 @@ workflows:
version: 2
build:
jobs:
- lint_&_docs:
- lint:
filters:
branches:
only: /.*/
- docs-deploy:
requires:
- lint_&_docs
filters:
tags:
only: /^v\d+\.\d+\.\d$/
branches:
ignore: /.*/
- node8
- node10
- node12
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

Loading

0 comments on commit fe6d846

Please sign in to comment.