59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
language: go
|
|
go: stable
|
|
|
|
matrix:
|
|
include:
|
|
# - os: windows
|
|
- os: linux
|
|
dist: xenial
|
|
|
|
install:
|
|
- set -e
|
|
- |
|
|
if [[ $TRAVIS_OS_NAME == windows ]]; then
|
|
wget -O ~/bin/yasm.exe http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe
|
|
choco install vcredist2010
|
|
mkdir ~/aom && cd ~/aom
|
|
git clone --depth=1 https://aomedia.googlesource.com/aom
|
|
mkdir build && cd build
|
|
cmake ../aom -G 'MSYS Makefiles' \
|
|
-DCMAKE_MAKE_PROGRAM=mingw32-make \
|
|
-DCMAKE_C_COMPILER=gcc \
|
|
-DCMAKE_INSTALL_PREFIX=~/aom/dist \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCONFIG_AV1_DECODER=0 \
|
|
-DENABLE_DOCS=0 \
|
|
-DENABLE_EXAMPLES=0 \
|
|
-DENABLE_TOOLS=0 \
|
|
-DENABLE_TESTS=0 \
|
|
-DCONFIG_LOWBITDEPTH=1
|
|
mingw32-make -j3
|
|
mingw32-make install
|
|
export CGO_CFLAGS="-IC:/Users/travis/aom/dist/include"
|
|
export CGO_LDFLAGS="-static -LC:/Users/travis/aom/dist/lib"
|
|
elif [[ $TRAVIS_OS_NAME == linux ]]; then
|
|
sudo apt-get install -y yasm
|
|
mkdir ~/aom && cd ~/aom
|
|
git clone --depth=1 https://aomedia.googlesource.com/aom
|
|
mkdir build && cd build
|
|
cmake ../aom \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCONFIG_AV1_DECODER=0 \
|
|
-DENABLE_DOCS=0 \
|
|
-DENABLE_EXAMPLES=0 \
|
|
-DENABLE_TOOLS=0 \
|
|
-DENABLE_TESTS=0 \
|
|
-DCONFIG_LOWBITDEPTH=1
|
|
make -j3
|
|
sudo make install
|
|
export CGO_LDFLAGS="-static"
|
|
fi
|
|
|
|
script:
|
|
- cd $TRAVIS_BUILD_DIR
|
|
- go get -v ./...
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|