-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into object_keys_on_null
- Loading branch information
Showing
512 changed files
with
24,314 additions
and
17,573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
image: node | ||
git: | ||
depth: 1 | ||
script: | ||
- bash -c 'source /home/ubuntu/nvm/nvm.sh && nvm install 0.10 && curl -L https://npmjs.org/install.sh | sh && echo "Running tests for node.js latest 0.10" && npm test' | ||
services: | ||
- orchardup/mysql | ||
- dockerfile/mongodb | ||
- borja/docker-memcached | ||
- library/redis | ||
- zmarcantel/cassandra | ||
- zaiste/postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"global": [ | ||
"after", | ||
"afterEach", | ||
"before", | ||
"beforeEach", | ||
"describe", | ||
"it" | ||
], | ||
"rules": { | ||
"eqeqeq": 2, | ||
"guard-for-in": 2, | ||
"wrap-iife": 2, | ||
"no-unused-vars": 2, | ||
"no-undef": 0, //this seems broken | ||
"max-len": [2, 90], | ||
"max-depth": [2, 3], | ||
"max-params": [2, 4], | ||
"new-cap": 2, | ||
"no-new": 2, | ||
"semi": [2, "never"], | ||
"dot-notation": 0, | ||
"shadow": false, | ||
"quotes": [0, "single"], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,10 @@ MOCHA_NOBIN = node_modules/.bin/_mocha | |
COVER = node_modules/.bin/cover | ||
TAP = node_modules/.bin/tap | ||
NODE_VERSION = $(shell node --version) | ||
INTEGRATION = $(wildcard test/integration/*.tap.js) | ||
INTEGRATION += $(wildcard test/versioned/*/*.tap.js) | ||
INTEGRATION = test/integration/*.tap.js | ||
INTEGRATION += test/integration/*/*.tap.js | ||
INTEGRATION += test/integration/*/*/*.tap.js | ||
INTEGRATION += test/versioned/*/*.tap.js | ||
# subcomponents manage their own modules | ||
NPMDIRS = $(wildcard test/lib/bootstrap/*) | ||
NPMDIRS += $(wildcard test/versioned/*) | ||
|
@@ -49,12 +51,12 @@ test-clean: | |
|
||
test-ci: node_modules sub_node_modules $(CERTIFICATE) | ||
@rm -f newrelic_agent.log | ||
@$(MOCHA) --reporter min | ||
@$(MOCHA) test/unit --recursive --reporter min | ||
@$(TAP) $(INTEGRATION) | ||
|
||
unit: node_modules | ||
@rm -f newrelic_agent.log | ||
@$(MOCHA) | ||
@$(MOCHA) test/unit --recursive | ||
|
||
sub_node_modules: $(SUBNPM) | ||
|
||
|
@@ -78,7 +80,7 @@ integration: node_modules sub_node_modules ca-gen $(CERTIFICATE) | |
time $(TAP) $(INTEGRATION) | ||
|
||
coverage: clean node_modules $(CERTIFICATE) | ||
@$(COVER) run $(MOCHA_NOBIN) | ||
@$(COVER) run $(MOCHA_NOBIN) -- test/unit --recursive | ||
@for tapfile in $(INTEGRATION) ; do \ | ||
$(COVER) run $$tapfile ; \ | ||
done | ||
|
@@ -94,10 +96,10 @@ notes: | |
-type f -exec egrep -n -H --color=always -C 2 'FIXME|TODO|NOTE|TBD|hax|HAX' {} \; | less -r | ||
|
||
pending: node_modules | ||
@$(MOCHA) --reporter list | egrep '^\s+\-' | ||
@$(MOCHA) test/unit --recursive --reporter list | egrep '^\s+\-' | ||
|
||
pending-core: node_modules | ||
@$(MOCHA) --reporter list | egrep '^\s+\-' | grep -v 'agent instrumentation of' | ||
@$(MOCHA) test/unit --recursive --reporter list | egrep '^\s+\-' | grep -v 'agent instrumentation of' | ||
|
||
ssl: $(CERTIFICATE) | ||
|
||
|
@@ -168,3 +170,8 @@ services: | |
|
||
@echo "\nTo run individual integration tests, run 'source test/docker_env_vars.sh' to set\ | ||
the environment variables for all services.\n" | ||
|
||
update_cross_agent_tests: | ||
rm -rf test/lib/cross_agent_tests | ||
git clone [email protected]:newrelic/cross_agent_tests.git test/lib/cross_agent_tests | ||
rm -rf test/lib/cross_agent_tests/.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.