avif/.travis.yml

59 lines
1.6 KiB
YAML
Raw Normal View History

2019-03-17 16:21:56 +00:00
language: go
go: stable
2019-04-06 18:26:58 +00:00
matrix:
include:
2019-04-06 20:53:40 +00:00
# - os: windows
- os: linux
dist: xenial
2019-04-06 18:26:58 +00:00
install:
2019-04-06 19:02:01 +00:00
- set -e
2019-04-06 18:26:58 +00:00
- |
if [[ $TRAVIS_OS_NAME == windows ]]; then
2019-04-06 19:02:01 +00:00
wget -O ~/bin/yasm.exe http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe
2019-04-06 20:21:16 +00:00
choco install vcredist2010
2019-04-06 19:02:01 +00:00
mkdir ~/aom && cd ~/aom
2019-04-06 18:26:58 +00:00
git clone --depth=1 https://aomedia.googlesource.com/aom
2019-04-06 19:02:01 +00:00
mkdir build && cd build
2019-04-06 18:26:58 +00:00
cmake ../aom -G 'MSYS Makefiles' \
2019-04-06 20:00:58 +00:00
-DCMAKE_MAKE_PROGRAM=mingw32-make \
-DCMAKE_C_COMPILER=gcc \
2019-04-06 18:26:58 +00:00
-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
2019-04-06 20:00:58 +00:00
mingw32-make -j3
mingw32-make install
2019-04-06 19:02:01 +00:00
export CGO_CFLAGS="-IC:/Users/travis/aom/dist/include"
export CGO_LDFLAGS="-static -LC:/Users/travis/aom/dist/lib"
2019-04-06 20:53:40 +00:00
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
2019-04-06 21:01:38 +00:00
export CGO_LDFLAGS="-static"
2019-04-06 18:26:58 +00:00
fi
script:
- cd $TRAVIS_BUILD_DIR
- go get -v ./...
2019-03-17 16:21:56 +00:00
notifications:
email:
on_success: never