Skip to content

Commit 42dbe4d

Browse files
committed
Test on darwin and fix version
1 parent b322250 commit 42dbe4d

File tree

6 files changed

+26
-6
lines changed

6 files changed

+26
-6
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
language: node_js
22
node_js:
33
- "4"
4+
os:
5+
- linux
6+
- osx
7+
osx_image: xcode8
8+
script: 'node platform; npm test'

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# dist-exiftool
22
A distribution of _exiftool_. Depending on the platform, it will install
3-
either `exiftool.pl` or `exiftool.exe` module. Current version is 10.25.
3+
either [exiftool.pl](https://www.npmjs.com/package/exiftool.pl) or
4+
[exiftool.exe](https://www.npmjs.com/package/exiftool.exe) module.
5+
Current version is 10.25.
46

57
[![npm version](https://badge.fury.io/js/dist-exiftool.svg)](https://badge.fury.io/js/dist-exiftool)
68
[![Build Status](https://travis-ci.org/Sobesednik/dist-exiftool.svg?branch=master)](https://travis-ci.org/Sobesednik/dist-exiftool)

appveyor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ install:
1212
# Post-install test scripts.
1313
test_script:
1414
# Output useful info for debugging.
15+
- node platform
1516
- node --version
1617
- npm --version
1718
# run tests

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@
2929
"config": {
3030
"platformDependentModules": {
3131
"linux": [
32-
"exiftool.pl"
32+
"exiftool.pl@10.25"
3333
],
3434
"win32": [
35-
"exiftool.exe"
35+
"exiftool.exe@10.25"
3636
],
3737
"darwin": [
38-
"exiftool.pl"
38+
"exiftool.pl@10.25"
3939
],
4040
"freebsd": [
41-
"exiftool.pl"
41+
"exiftool.pl@10.25"
4242
],
4343
"sunos": [
44-
"exiftool.pl"
44+
"exiftool.pl@10.25"
4545
]
4646
}
4747
}

platform.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Platform: %s', process.platform);

test/index.js

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const assert = require('assert');
44
const exiftool = require('../index');
55

66
describe('exiftool', function () {
7+
this.timeout(5000);
78
it('should export a path to current executable', function () {
89
const exePath = path.join(__dirname, '../node_modules/exiftool.exe/vendor/exiftool.exe');
910
const plPath = path.join(__dirname, '../node_modules/exiftool.pl/vendor/exiftool');
@@ -24,4 +25,14 @@ describe('exiftool', function () {
2425
done();
2526
});
2627
});
28+
it('should have version 10.25', function (done) {
29+
execFile(exiftool, ['-ver'], (err, stdout, stderr) => {
30+
if (err) {
31+
done(err);
32+
return;
33+
}
34+
assert.equal(stdout.trim(), '10.25');
35+
done();
36+
});
37+
});
2738
});

0 commit comments

Comments
 (0)