Add jasmine setup.

master
PJ Hampton 2017-04-28 11:43:25 +00:00
parent d601b91fd6
commit 4bd79a4c13
3 changed files with 26 additions and 1 deletions

View File

@ -16,7 +16,7 @@ before_install:
- git config --global user.name "Dist Zilla Plugin TravisCI"
- git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org"
install:
- npm install -g uglify-js handlebars
- npm install -g uglify-js handlebars jasmine
- cpanm --quiet --notest Dist::Zilla
- dzil authordeps | grep -ve '^\W' | xargs -n 5 -P 10 cpanm --quiet --notest --mirror http://www.cpan.org/ --mirror http://duckpan.org
- dzil listdeps | grep -ve '^\W' | cpanm --quiet --notest --mirror http://www.cpan.org/ --mirror http://duckpan.org
@ -24,4 +24,5 @@ language: perl
perl:
- 5.16
script:
- jasmine
- prove -lr -j1 t

13
spec/conversions_spec.js Normal file
View File

@ -0,0 +1,13 @@
GLOBAL.DDH = {};
describe("Conversions", function() {
it("should be able to add two numbers", function() {
expect(true).toEqual(false);
});
it("should be able to subtract two numbers", function() {
expect(true).toEqual(true);
});
});

11
spec/support/jasmine.json Normal file
View File

@ -0,0 +1,11 @@
{
"spec_dir": "spec",
"spec_files": [
"**/*[sS]pec.js"
],
"helpers": [
"helpers/**/*.js"
],
"stopSpecOnExpectationFailure": false,
"random": false
}