Merge branch 'master' into master

This commit is contained in:
Malte Rosenbjerg 2020-02-18 16:55:04 +01:00 committed by GitHub
commit ba863ae255
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 47 deletions

View file

@ -1,14 +0,0 @@
const fs = require('fs');
const path = require('path');
const CONFIG_PATH = path.resolve('./FFMpegCore.Test/ffmpeg.config.json');
console.log('--- Configuring ffmpeg binary path for:', process.env.TRAVIS_OS_NAME);
let data = require(CONFIG_PATH);
data.RootDirectory = process.env.TRAVIS_OS_NAME === 'linux' ?
'/usr/bin' :
'/usr/local/bin';
fs.writeFileSync(CONFIG_PATH, JSON.stringify(data, null, 4));

View file

@ -1,5 +1,5 @@
name: CI name: CI
on: [push, pull_request] on: pull_request
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -1,26 +0,0 @@
language: csharp
mono: none
dotnet: 3.1
os:
- linux
- osx
dist: trusty
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:mc3man/trusty-media; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y ffmpeg libgdiplus; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ffmpeg mono-libgdiplus; fi
- ffmpeg -hwaccels
script:
- nvm install --lts
- nvm use --lts
- node ./.build/travis-ffmpeg-config.js
- dotnet restore
- dotnet build ./FFMpegCore/
- dotnet test ./FFMpegCore.Test/
branches:
only:
- master
- /fix\/.+/
- /feature\/.+/

View file

@ -318,10 +318,10 @@ public void Video_Join_Image_Sequence()
public void Video_With_Only_Audio_Should_Extract_Metadata() public void Video_With_Only_Audio_Should_Extract_Metadata()
{ {
var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideoAudioOnly); var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideoAudioOnly);
Assert.AreEqual(video.VideoFormat, "none"); Assert.AreEqual("none", video.VideoFormat);
Assert.AreEqual(video.AudioFormat, "aac"); Assert.AreEqual("aac", video.AudioFormat);
Assert.AreEqual(video.Duration.TotalSeconds, 79.451); Assert.AreEqual(79.0, video.Duration.TotalSeconds, 0.1);
Assert.AreEqual(video.Size, 1.25); Assert.AreEqual(1.25, video.Size);
} }
[TestMethod] [TestMethod]

View file

@ -1,3 +1,3 @@
{ {
"RootDirectory": "" "RootDirectory": "/usr/bin"
} }

View file

@ -1,6 +1,6 @@
# FFMpegCore # FFMpegCore
[![NuGet Badge](https://buildstats.info/nuget/FFMpegCore)](https://www.nuget.org/packages/FFMpegCore/) [![NuGet Badge](https://buildstats.info/nuget/FFMpegCore)](https://www.nuget.org/packages/FFMpegCore/)
[![Build Status](https://travis-ci.org/rosenbjerg/FFMpegCore.svg)](https://travis-ci.org/vladjerca/FFMpegCore) ![CI](https://github.com/rosenbjerg/FFMpegCore/workflows/CI/badge.svg)
# Setup # Setup