travis try #2

This commit is contained in:
Kagami Hiiragi 2019-04-06 22:02:01 +03:00
parent 92f0d0c368
commit 0e50aa9d80
1 changed files with 6 additions and 7 deletions

View File

@ -6,16 +6,13 @@ matrix:
- os: windows - os: windows
install: install:
- set -e
- | - |
set -e
if [[ $TRAVIS_OS_NAME == windows ]]; then if [[ $TRAVIS_OS_NAME == windows ]]; then
choco install msys2 wget -O ~/bin/yasm.exe http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe
mkdir ~/aom mkdir ~/aom && cd ~/aom
cd ~/aom
pacman --noconfirm -S mingw-w64-x86_64-cmake mingw-w64-x86_64-yasm
git clone --depth=1 https://aomedia.googlesource.com/aom git clone --depth=1 https://aomedia.googlesource.com/aom
mkdir aom_build mkdir build && cd build
cd aom_build
cmake ../aom -G 'MSYS Makefiles' \ cmake ../aom -G 'MSYS Makefiles' \
-DCMAKE_INSTALL_PREFIX=~/aom/dist \ -DCMAKE_INSTALL_PREFIX=~/aom/dist \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
@ -27,6 +24,8 @@ install:
-DCONFIG_LOWBITDEPTH=1 -DCONFIG_LOWBITDEPTH=1
make -j3 make -j3
make install make install
export CGO_CFLAGS="-IC:/Users/travis/aom/dist/include"
export CGO_LDFLAGS="-static -LC:/Users/travis/aom/dist/lib"
fi fi
script: script: