-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.travis.yml
47 lines (34 loc) · 1.73 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
branches:
only:
- master
sudo: true
language: go
go:
- "1.11" # use the latest Go release
matrix:
include:
- os: linux
dist: xenial
- os: osx
osx_image: xcode10.1
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install pkg-config; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y autoconf libtool automake g++-7; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-ugly gstreamer1.0-libav; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install pkg-config; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install gstreamer; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install gst-plugins-base; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install gst-plugins-good; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install gst-plugins-bad; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install gst-plugins-ugly; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"; fi
install:
- git clone --recurse-submodules https://github.com/notedit/media-server-go-native.git
- cd media-server-go-native && make && cd ../
- go get -t -d ./...
script:
- go build -v