diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 22e54e2d0..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,101 +0,0 @@ -# Javascript Node CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-javascript/ for more details -# -version: 2.1 -commands: - early_return_for_forked_pull_requests: - description: >- - If this build is from a fork, stop executing the current job and return success. - This is useful to avoid steps that will fail due to missing credentials. - steps: - - run: - name: Early return if this build is from a forked PR - command: | - if [ -n "$CIRCLE_PR_NUMBER" ]; then - echo "Nothing to do for forked PRs, so marking this step successful" - circleci step halt - fi - -jobs: - build: - docker: - - image: circleci/node:10.15 - - - image: redislabs/redisgraph:edge - - working_directory: ~/repo - - steps: - - checkout - -# # Download and cache dependencies -# - restore_cache: -# keys: -# - v1-dependencies-{{ checksum "package.json" }} -# # fallback to using the latest cache if no exact match is found -# - v1-dependencies- - - - run: npm install - -# - save_cache: -# paths: -# - node_modules -# key: v1-dependencies-{{ checksum "package.json" }} - - - # generate types - - run: npm install ioredis@4.2 # ioredis is used in jsdocs (and the types built from the jsdoc) - - run: npm run types - - # run tests! - - run: npm run istanbul - - early_return_for_forked_pull_requests - - run: npm run codecov - - docs: - docker: - - image: circleci/node:10.15 - - working_directory: ~/repo - - steps: - - checkout - - add_ssh_keys: - fingerprints: - - "76:ad:7c:fa:32:41:29:d0:cc:f6:63:06:62:b6:54:9c" - - run: - name: Install and configure dependencies - command: | - npm install --only dev - git config user.email "ci-build@redisgraph.io" - git config user.name "ci-build" - - run: - name: Create docs with jsdoc - command: npm run docs - - run: - name: Deploy docs to gh-pages branch - command: npm run gh-pages - -workflows: - version: 2 - commit: - jobs: - - build - - docs: - requires: - - build - filters: - branches: - only: master - - nightly: - triggers: - - schedule: - cron: "0 0 * * *" - filters: - branches: - only: - - master - jobs: - - build diff --git a/README.md b/README.md index 6d06da2b4..c9526c156 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ [![license](https://img.shields.io/github/license/RedisGraph/redisgraph.js.svg)](https://github.com/RedisGraph/redisgraph.js) -[![CircleCI](https://circleci.com/gh/RedisGraph/redisgraph.js/tree/master.svg?style=svg)](https://circleci.com/gh/RedisGraph/redisgraph.js/tree/master) [![GitHub issues](https://img.shields.io/github/release/RedisGraph/redisgraph.js.svg)](https://github.com/RedisGraph/redisgraph.js/releases/latest) [![npm version](https://badge.fury.io/js/redisgraph.js.svg)](https://badge.fury.io/js/redisgraph.js) [![Codecov](https://codecov.io/gh/RedisGraph/redisgraph.js/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisGraph/redisgraph.js) @@ -47,7 +46,7 @@ let graph = new RedisGraph("social"); await graph.query("CREATE (:person{name:'roi',age:32})"); await graph.query("CREATE (:person{name:'amit',age:30})"); await graph.query("MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]->(b)"); - + // Match query. let res = await graph.query("MATCH (a:person)-[:knows]->(:person) RETURN a.name"); while (res.hasNext()) { @@ -55,7 +54,7 @@ let graph = new RedisGraph("social"); console.log(record.get("a.name")); } console.log(res.getStatistics().queryExecutionTime()); - + // Match with parameters. let param = {'age': 30}; res = await graph.query("MATCH (a {age: $age}) return a.name", param); @@ -63,7 +62,7 @@ let graph = new RedisGraph("social"); let record = res.next(); console.log(record.get("a.name")); } - + // Named paths matching. res = await graph.query("MATCH p = (a:person)-[:knows]->(:person) RETURN p"); while (res.hasNext()) { @@ -73,7 +72,7 @@ let graph = new RedisGraph("social"); } graph.deleteGraph(); graph.close(); - + })(); ```