Skip to content

Commit

Permalink
Run tests with CircleCI
Browse files Browse the repository at this point in the history
Test both node 0.12.16 and latest 4.x
  • Loading branch information
pushred committed Oct 5, 2016
1 parent 13ca696 commit 52af4a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Solidus

[![CircleCI Status][circleci-badge]][circleci]

A lightweight [Node.js][node] server that generates sites from [Handlebars](http://handlebarsjs.com/) templates and JSON resources pulled in from almost any API. For any high traffic applications it is best to use it as an origin for a CDN that can provide sufficient caching. It has run in production with [Fastly][fastly] and [Edgecast][edgecast], but has been especially tuned for use with Fastly.

Awesome things you can do with Solidus:
Expand Down Expand Up @@ -417,6 +419,8 @@ Solidus has the capability to serve any static resource you choose, be it styles

Solidus uses [mocha](https://github.com/visionmedia/mocha) to run its tests. Any new features should be tested, and resolved bugs should have tests to prevent regression. Tests can be run with the `mocha` command.

[circleci]: https://circleci.com/gh/solidusjs/solidus
[circleci-badge]: https://circleci.com/gh/solidusjs/solidus.png?style=shield&circle-token=df44f238db22ef6b70d50d93cc5d0d811b1843dd

[npm]: https://docs.npmjs.com/getting-started/what-is-npm
[node]: http://nodejs.org/
Expand Down
7 changes: 7 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
machine:
node:
version: v4.5.0
dependencies:
# https://discuss.circleci.com/t/testing-multiple-versions-of-node/542
pre:
- case $CIRCLE_NODE_INDEX in 0) NODE_VERSION=0.12 ;; 1) NODE_VERSION=4 ;; esac; nvm install $NODE_VERSION && nvm alias default $NODE_VERSION

0 comments on commit 52af4a3

Please sign in to comment.