Skip to content

Commit b1988b1

Browse files
committed
Add travis
1 parent 5ac061e commit b1988b1

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- "0.8"
4+
before_install:
5+
- sudo apt-get update -qq
6+
- sudo apt-get install -qq php5-cli
7+
script: make test

tests/cli.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cli.pad = function(str, pad, chr, dir) {
5757
var width = 120;
5858

5959
cli.main(function(args, options) {
60-
var self = this;
60+
var self = this;
6161
var globpath = __dirname + '/../functions/' + options.category + '/' + options.name + '.js';
6262

6363
process.on('exit', function (){
@@ -78,9 +78,9 @@ cli.main(function(args, options) {
7878
}
7979
}
8080

81-
self.pass_cnt = 0;
82-
self.fail_cnt = 0;
83-
self.skip_cnt = 0;
81+
self.pass_cnt = 0;
82+
self.fail_cnt = 0;
83+
self.skip_cnt = 0;
8484

8585
names.forEach(function(name) {
8686
PhpjsUtil.load(name, function (err, params) {

0 commit comments

Comments
 (0)