FFMpegCore/.travis.yml

27 lines
761 B
YAML
Raw Normal View History

2019-05-09 22:12:16 +02:00
language: csharp
mono: none
2020-02-16 11:03:51 +01:00
dotnet: 3.1
2019-05-09 22:12:16 +02:00
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\/.+/