From 3aecee82c57ca2d6f4f27aded640faeffb73b441 Mon Sep 17 00:00:00 2001 From: Kagami Hiiragi Date: Sat, 6 Apr 2019 23:53:40 +0300 Subject: [PATCH] travis linux build --- .travis.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6964238..edce18f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,9 @@ go: stable matrix: include: - - os: windows + # - os: windows + - os: linux + dist: xenial install: - set -e @@ -30,6 +32,21 @@ install: 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 fi script: