mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-02-18 11:02:31 +00:00
chore: configure travis
This commit is contained in:
parent
097b9f0d2f
commit
37da21fda9
4 changed files with 44 additions and 3 deletions
14
.build/travis-ffmpeg-config.js
Normal file
14
.build/travis-ffmpeg-config.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
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));
|
26
.travis.yml
Normal file
26
.travis.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
language: csharp
|
||||
mono: none
|
||||
dotnet: 2.1.300
|
||||
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\/.+/
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"RootDirectory": ".//FFMPEG//bin"
|
||||
"RootDirectory": "./FFMPEG/bin"
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||

|
||||
|
||||
# FFMpegCore [](https://www.nuget.org/packages/FFMpegCore/)
|
||||
# FFMpegCore
|
||||
[](https://www.nuget.org/packages/FFMpegCore/)
|
||||
[](https://travis-ci.org/vladjerca/FFMpegCore)
|
||||
|
||||
## Setup
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue