Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit b991fe3

Browse files
authored
Merge pull request #34 from codacy/ci
Run test on windows
2 parents c9b290e + 42a516e commit b991fe3

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

appveyor.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# AppVeyor file
2+
# http://www.appveyor.com/docs/appveyor-yml
3+
4+
# Build version format
5+
version: "{build}"
6+
7+
# What combinations to test
8+
environment:
9+
matrix:
10+
# node.js
11+
- nodejs_version: "0.10"
12+
- nodejs_version: "0.11"
13+
- nodejs_version: "0.12"
14+
- nodejs_version: 4
15+
16+
install:
17+
# Get the latest stable version of Node.js
18+
- ps: Install-Product node $env:nodejs_version
19+
# install modules
20+
- npm install
21+
22+
build: off
23+
24+
test_script:
25+
- npm test
26+
27+
matrix:
28+
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.

test/handleInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
return expect(handleInput(lcovData, {
134134
token: '1234',
135135
commit: '4321',
136-
prefix: 'my-project/'
136+
prefix: 'my-project' + path.sep
137137
})).to.eventually.be.fulfilled();
138138
});
139139
});

test/lcov.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
});
5050
});
5151
it('should be able to parse lcov data with path prefix', function () {
52-
return expect(parser.getParser('lcov').parse(path.normalize('my-project/'), lcovData))
52+
return expect(parser.getParser('lcov').parse(path.normalize('my-project' + path.sep), lcovData))
5353
.to.eventually.satisfy(function (data) {
5454
expect(data).to.deep.equal({
5555
total: 92,

0 commit comments

Comments
 (0)