diff --git a/.gitignore b/.gitignore index ce751fe..ee4ba40 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ tests/sandbox/ docs/ +npm-debug.log diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e0bc653 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: node_js +node_js: + - "0.11" + - "0.12" + - "4.0" + - "4.1" + - "4.2" + - "5.0" diff --git a/README.md b/README.md index a7d2e72..141d7d8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ HackMyResume ============ + +[![Build status][travis-image]][travis-url] + *Create polished résumés and CVs in multiple formats from your command line or shell. Author in clean Markdown and JSON, export to Word, HTML, PDF, LaTeX, plain text, and other arbitrary formats. Fight the power, save trees. Compatible @@ -302,3 +305,5 @@ MIT. Go crazy. See [LICENSE.md][1] for details. [fresh]: https://github.com/fluentdesk/FRESH [fresca]: https://github.com/fluentdesk/FRESCA [dry]: https://en.wikipedia.org/wiki/Don%27t_repeat_yourself +[travis-image]: https://img.shields.io/travis/palomajs/paloma.svg?style=flat-square +[travis-url]: https://travis-ci.org/hacksalot/HackMyResume diff --git a/package.json b/package.json index e8539e2..025892b 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "type": "git", "url": "https://github.com/hacksalot/HackMyResume.git" }, + "scripts": { + "test": "mocha && grunt", + "grunt": "grunt" + }, "keywords": [ "resume", "CV", @@ -61,6 +65,7 @@ "devDependencies": { "chai": "*", "grunt": "*", + "grunt-cli": "^0.1.13", "grunt-contrib-clean": "^0.7.0", "grunt-contrib-jshint": "^0.11.3", "grunt-contrib-yuidoc": "^0.10.0", diff --git a/test/.gitignore b/test/.gitignore new file mode 100644 index 0000000..97f3e31 --- /dev/null +++ b/test/.gitignore @@ -0,0 +1 @@ +sandbox/ diff --git a/tests/resumes/jrs-0.0.0/empty.json b/test/resumes/jrs-0.0.0/empty.json similarity index 100% rename from tests/resumes/jrs-0.0.0/empty.json rename to test/resumes/jrs-0.0.0/empty.json diff --git a/tests/resumes/jrs-0.0.0/jane-incomplete.json b/test/resumes/jrs-0.0.0/jane-incomplete.json similarity index 100% rename from tests/resumes/jrs-0.0.0/jane-incomplete.json rename to test/resumes/jrs-0.0.0/jane-incomplete.json diff --git a/tests/resumes/jrs-0.0.0/jane-q-fullstacker.json b/test/resumes/jrs-0.0.0/jane-q-fullstacker.json similarity index 100% rename from tests/resumes/jrs-0.0.0/jane-q-fullstacker.json rename to test/resumes/jrs-0.0.0/jane-q-fullstacker.json diff --git a/tests/resumes/jrs-0.0.0/richard-hendriks.json b/test/resumes/jrs-0.0.0/richard-hendriks.json similarity index 100% rename from tests/resumes/jrs-0.0.0/richard-hendriks.json rename to test/resumes/jrs-0.0.0/richard-hendriks.json diff --git a/tests/test-cli.js b/test/test-cli.js similarity index 100% rename from tests/test-cli.js rename to test/test-cli.js diff --git a/tests/test-converter.js b/test/test-converter.js similarity index 100% rename from tests/test-converter.js rename to test/test-converter.js diff --git a/tests/test-fresh-sheet.js b/test/test-fresh-sheet.js similarity index 97% rename from tests/test-fresh-sheet.js rename to test/test-fresh-sheet.js index f35487d..055931a 100644 --- a/tests/test-fresh-sheet.js +++ b/test/test-fresh-sheet.js @@ -50,7 +50,7 @@ describe('jane-doe.json (FRESH)', function () { it('should not be modified after saving', function() { var savedSheet = new FRESHResume().open('tests/sandbox/jane-q-fullstacker.json'); - _sheet.stringify().should.equal( savedSheet.stringify() ) + _sheet.stringify().should.equal( savedSheet.stringify() ); }); it('should validate against the FRESH resume schema', function() { diff --git a/tests/test-jrs-sheet.js b/test/test-jrs-sheet.js similarity index 97% rename from tests/test-jrs-sheet.js rename to test/test-jrs-sheet.js index acd6f2e..86bb7ab 100644 --- a/tests/test-jrs-sheet.js +++ b/test/test-jrs-sheet.js @@ -45,7 +45,7 @@ function testResume( opts ) { it('should not be modified after saving', function() { var savedSheet = new JRSResume().open( 'tests/sandbox/' + opts.title + '.json' ); - _sheet.stringify().should.equal( savedSheet.stringify() ) + _sheet.stringify().should.equal( savedSheet.stringify() ); }); it('should ' + (opts.isValid ? '' : 'NOT ') + 'validate against the JSON Resume schema', function() { diff --git a/tests/test-themes.js b/test/test-themes.js similarity index 100% rename from tests/test-themes.js rename to test/test-themes.js