Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
xedsvg authored May 9, 2019
2 parents 48b112b + bee1077 commit bbfdf92
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ before_install:
matrix:
include:
- os: linux
env: NODE_VERSION=4
env: NODE_VERSION=8
- os: linux
env: NODE_VERSION=5
env: NODE_VERSION=10
- os: linux
env: NODE_VERSION=6
env: NODE_VERSION=11
script:
- tools/test-travis.sh
addons:
apt:
packages:
- wget
- tar
- bzip2
- wget
- tar
- bzip2
16 changes: 8 additions & 8 deletions test/processor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ describe('Processor', function() {
})
.saveToFile(testFile);
});

it('should pass input stream errors through to error handler', function(done) {
var testFile = path.join(__dirname, 'assets', 'testConvertFromStream.avi')

Expand All @@ -780,12 +780,12 @@ describe('Processor', function() {
process.nextTick(() => this.emit('error', readError))
}
})

const command = this.getCommand({ source: instream, logger: testhelper.logger })

let startCalled = false
const self = this

command
.usingPreset('divx')
.on('start', function() {
Expand Down Expand Up @@ -953,21 +953,21 @@ describe('Processor', function() {
new FfmpegCommand().writeToStream({end: true});
}).should.throw(/PassThrough stream is not supported on node v0.8/);
});

it('should pass output stream errors through to error handler', function(done) {

const writeError = new Error('Write Error')
const outstream = new (require('stream').Writable)({
write(chunk, encoding, callback) {
callback(writeError)
}
})

const command = this.getCommand({ source: this.testfile, logger: testhelper.logger })

let startCalled = false
const self = this

command
.usingPreset('divx')
.on('start', function() {
Expand Down Expand Up @@ -1076,7 +1076,7 @@ describe('Processor', function() {
});
});

describe('Remote I/O', function() {
describe.skip('Remote I/O', function() {
this.timeout(60000);

var ffserver;
Expand Down
8 changes: 4 additions & 4 deletions tools/test-travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ set -e

echo travis_fold:start:Dependencies

wget http://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
tar xf ffmpeg-git-64bit-static.tar.xz
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
tar xf ffmpeg-release-amd64-static.tar.xz

mkdir -p $HOME/bin
cp ffmpeg-git-*-static/{ffmpeg,ffprobe,ffserver} $HOME/bin
cp ffmpeg-git-*-static/{ffmpeg,ffprobe} $(pwd)
cp ffmpeg-*-static/{ffmpeg,ffprobe} $HOME/bin
cp ffmpeg-*-static/{ffmpeg,ffprobe} $(pwd)

export PATH=$(pwd)/bin:$PATH
export ALT_FFMPEG_PATH=$(pwd)/ffmpeg
Expand Down

0 comments on commit bbfdf92

Please sign in to comment.