Skip to content

Commit 52af4a3

Browse files
committed
Run tests with CircleCI
Test both node 0.12.16 and latest 4.x
1 parent 13ca696 commit 52af4a3

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Solidus
22

3+
[![CircleCI Status][circleci-badge]][circleci]
4+
35
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.
46

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

418420
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.
419421

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

421425
[npm]: https://docs.npmjs.com/getting-started/what-is-npm
422426
[node]: http://nodejs.org/

circle.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
machine:
2+
node:
3+
version: v4.5.0
4+
dependencies:
5+
# https://discuss.circleci.com/t/testing-multiple-versions-of-node/542
6+
pre:
7+
- 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 commit comments

Comments
 (0)