├── .travis.yml ├── test.js └── package.json /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | 3 | function square(a) { 4 | return a * a; 5 | } 6 | 7 | assert.equal(square(4), 16); 8 | assert.equal(square(8), 64); 9 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "travis-example", 3 | "version": "0.0.0", 4 | "description": "A sample project for setting up Travis CI and Node.", 5 | "main": "test.js", 6 | "scripts": { 7 | "test": "node test.js" 8 | }, 9 | "author": "Alex R. Young", 10 | "license": "MIT" 11 | } 12 | --------------------------------------------------------------------------------