Skip to content

Commit

Permalink
feat(ci): switch to circleci... ci
Browse files Browse the repository at this point in the history
  • Loading branch information
UnbounDev committed May 24, 2019
1 parent 35257ce commit da6e31d
Show file tree
Hide file tree
Showing 5 changed files with 1,090 additions and 13 deletions.
43 changes: 43 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:8

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

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: yarn install --frozen-lockfile

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run:
name: Run mocha unit tests with JUnit as reporter
command: yarn test --exit --reporter mocha-junit-reporter --reporter-options mochaFile=reports/junit/mocha-junit-results.xml
when: always
- store_test_results:
path: reports/junit
- store_artifacts:
path: ./reports/junit/mocha-junit-results.xml
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

[![NPM Version][npm-image]][npm-url]
[![Inline docs][inch-image]][inch-url]
[![Build Status][travis-image]][travis-url]
[![Build Status][circleci-image]][circleci-url]

# CassanKnex

A [fully tested][travis-url] Apache Cassandra CQL query builder with support for the [DataStax NodeJS driver][cassandra-driver-url], written in the spirit of [Knex][knexjs-url] for [CQL 3.x][cassandra-cql-3_1-ref-url].
A [fully tested][circleci-url] Apache Cassandra CQL query builder with support for the [DataStax NodeJS driver][cassandra-driver-url], written in the spirit of [Knex][knexjs-url] for [CQL 3.x][cassandra-cql-3_1-ref-url].

## Installation

Expand Down Expand Up @@ -808,8 +808,8 @@ var driver = cassanKnex.getDriver();
[npm-url]: https://npmjs.org/package/cassanknex
[inch-image]: http://inch-ci.org/github/azuqua/cassanknex.svg?branch=master&style=shields
[inch-url]: http://inch-ci.org/github/azuqua/cassanknex
[travis-image]: https://travis-ci.org/azuqua/cassanknex.svg?branch=master&style=flat
[travis-url]: https://travis-ci.org/azuqua/cassanknex
[circleci-image]: https://circleci.com/gh/azuqua/cassanknex/tree/master.svg?style=svg
[circleci-url]: https://circleci.com/gh/azuqua/cassanknex

[cassandra-cql-3_1-ref-url]: http://docs.datastax.com/en/cql/3.1/cql/cql_reference/cqlReferenceTOC.html
[cassandra-driver-url]: https://github.com/datastax/nodejs-driver
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "tests"
},
"scripts": {
"test": "grunt"
"test": "mocha tests/*.js"
},
"author": "austin brown <[email protected]> (http://www.azuqua.com/)",
"license": "MIT",
Expand All @@ -31,6 +31,7 @@
"grunt-contrib-jshint": "^1.1.0",
"grunt-mocha-test": "^0.13.3",
"mocha": "^5.2.0",
"mocha-junit-reporter": "^1.22.0",
"uuid": "^3.3.2"
},
"keywords": [
Expand Down
Loading

0 comments on commit da6e31d

Please sign in to comment.