Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Update test configuration for integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
default-usr committed May 16, 2019
1 parent 3643990 commit ea87679
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
25 changes: 24 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,31 @@ jobs:
build:
docker:
- image: circleci/node:8.11

- image: postgres:9.5-alpine
ports:
- '127.0.0.1:5432:5432'

- image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=rootpass
- MYSQL_PASSWORD=userpass
- MYSQL_USER=user
- MYSQL_DATABASE=db
ports:
- "127.0.0.1:3306:3306"

- image: redis:4.0-alpine

- image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms64m -Xmx64m"
ports:
- "127.0.0.1:9200:9200"

steps:
- checkout
- run: npm install
- run: npm run lint
- run: npm run test-ci
- run: npm run test-ci
7 changes: 4 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"testMatch": ["<rootDir>/test/*.js", "<rootDir>/test/plugins/*.js", "<rootDir>/test/opentracing/*.js"],
"testMatch": ["<rootDir>/test/*.js", "<rootDir>/test/plugins/*.js", "<rootDir>/test/opentracing/*.js", "<rootDir>/test/integration/*.js"],
"transform": {".*": "<rootDir>/node_modules/babel-jest"},
"moduleFileExtensions": ["js"],
"collectCoverageFrom": ["dist/*.js", "dist/opentracing/*.js", "dist/opentracing/instrument/*.js", "dist/opentracing/sampler/*.js", "dist/plugins/*.js",
"dist/plugins/data/base/*.js", "dist/plugins/data/invocation/*.js", "dist/plugins/data/metric/*.js",
"dist/plugins/config/*.js", "dist/plugins/data/trace/*.js", "dist/plugins/error/*.js",
"dist/plugins/listeners/*.js", "dist/plugins/support/*.js", "index.js"]
}
"dist/plugins/listeners/*.js", "dist/plugins/support/*.js", "index.js", "dist/plugins/integrations/*.js"
]
}

0 comments on commit ea87679

Please sign in to comment.