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 22:46:28 +00:00
|
|
|
- os: windows
|
2019-04-06 23:36:30 +00:00
|
|
|
if: tag IS present
|
2019-04-06 21:44:15 +00:00
|
|
|
- os: osx
|
2019-10-14 09:13:00 +00:00
|
|
|
osx_image: xcode11.2
|
2019-04-06 23:36:30 +00:00
|
|
|
if: tag IS present
|
2019-04-06 22:46:28 +00:00
|
|
|
- os: linux
|
2019-10-14 09:13:00 +00:00
|
|
|
dist: bionic
|
2019-04-06 18:26:58 +00:00
|
|
|
|
|
|
|
install:
|
2019-04-06 22:20:21 +00:00
|
|
|
- if [[ $TRAVIS_OS_NAME != osx ]]; then set -e; fi
|
2019-04-06 21:44:15 +00:00
|
|
|
- mkdir ~/aom && cd ~/aom
|
|
|
|
- git clone --depth=1 https://aomedia.googlesource.com/aom
|
|
|
|
- mkdir build && cd build
|
2019-04-06 18:26:58 +00:00
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_OS_NAME == windows ]]; then
|
2019-04-06 20:21:16 +00:00
|
|
|
choco install vcredist2010
|
2019-04-06 21:44:15 +00:00
|
|
|
wget -O ~/bin/yasm.exe http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe
|
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 23:04:18 +00:00
|
|
|
export CGO_CFLAGS="-IC:/Users/travis/aom/dist/include"
|
|
|
|
export CGO_LDFLAGS="-static -LC:/Users/travis/aom/dist/lib"
|
2019-04-06 21:44:15 +00:00
|
|
|
elif [[ $TRAVIS_OS_NAME == osx ]]; then
|
2019-04-06 22:20:21 +00:00
|
|
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install yasm
|
2019-04-06 21:44:15 +00:00
|
|
|
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
|
|
|
|
make install
|
2019-04-06 20:53:40 +00:00
|
|
|
elif [[ $TRAVIS_OS_NAME == linux ]]; then
|
|
|
|
sudo apt-get install -y yasm
|
|
|
|
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:20:42 +00:00
|
|
|
export CGO_LDFLAGS="-static -laom -lm"
|
2019-04-06 18:26:58 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- go get -v ./...
|
2019-04-06 21:44:15 +00:00
|
|
|
- cd ../../../../bin
|
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_OS_NAME == windows ]]; then
|
|
|
|
mv avif.exe avif-win-x64.exe
|
|
|
|
elif [[ $TRAVIS_OS_NAME == osx ]]; then
|
|
|
|
mv avif avif-darwin-x64
|
|
|
|
elif [[ $TRAVIS_OS_NAME == linux ]]; then
|
|
|
|
mv avif avif-linux-x64
|
|
|
|
fi
|
2019-04-06 18:26:58 +00:00
|
|
|
|
2019-04-06 21:12:16 +00:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: "kKtKp6gzFJ0Y/NxWhESyGhru960+F0d1uejHmgTCpQolVwBn2e5t5kqD4RT1JRlW9b5F0WpP41QJZISRKticT2iWuClQ8JjIrMZs80TO44PjVpfD0bds139d1WRK5rtBBrMugzfYij6Az7h/GputqTKW2C2wfVhC/dCBUPUQ/sVyEfuuIPy4LYzMG+VUf8hNg18YkOjQSIL8jejHbat1Ehg3iqD9wnGYcm8aB9fGifLqcun/bWiawgRxa5jL2fXY0qUAtJbAbck+P3bMsH01WNX63EA9iLYEBy3tU6Fg9bAdXDTAsraw3IXJ9jhaE1EM915AsjT70B0OQJJKOgODGU0K0eNlsUI/husbRTQIZiPONE5AMxRGf5V0khajR5bzu+qU6siv8I4JMSCCOVhkfR5849LrW3W6yojo3cqW41zSpZk5gjP50EoAAStUKtSrwJkZAHKOmmioIpjvg687EJdGfev31WUT7RQMXKoKwxTop57iDuGz88KsWC8AHN0AIL6yklDlrTplW3z+95c3rNTW4Ypswwu9TwPITc2tFox/WA7TkmVLjKs6qzZrf2mYqMHE5tUI7UArGHqacStTWedKBVUZpaJzHL53dMEoKxSmKN7FALbmgZ1YnO5jzU28OiozYF+FGn42EXu3IhXfM7/PdI2lOa8T+iase+AMz40="
|
|
|
|
file_glob: true
|
2019-04-06 21:44:15 +00:00
|
|
|
file: avif*
|
2019-04-06 21:12:16 +00:00
|
|
|
skip_cleanup: true
|
2019-04-06 23:22:19 +00:00
|
|
|
on:
|
|
|
|
tags: true
|
2019-04-06 21:12:16 +00:00
|
|
|
|
2019-03-17 16:21:56 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|