2016-11-18 02:11:38 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This source code is licensed under the BSD-style license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
# of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
#
|
|
|
|
|
2016-02-16 20:46:01 +00:00
|
|
|
language: generic
|
|
|
|
|
|
|
|
script:
|
|
|
|
- make
|
|
|
|
- make test
|
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
2016-11-18 02:11:38 +00:00
|
|
|
build-shared:
|
|
|
|
build-sources:
|
|
|
|
linux: &linux-build-sources
|
|
|
|
- george-edison55-precise-backports
|
|
|
|
wine: &wine-build-sources
|
|
|
|
- *linux-build-sources
|
|
|
|
build-packages:
|
|
|
|
linux: &linux-build-packages
|
|
|
|
- pkg-config
|
|
|
|
- ninja-build
|
|
|
|
- cmake
|
|
|
|
- cmake-data
|
|
|
|
wine: &wine-build-packages
|
|
|
|
- *linux-build-packages
|
|
|
|
- binutils-mingw-w64-i686
|
|
|
|
build-env:
|
|
|
|
linux: &linux-build-env
|
|
|
|
- NINJA_FLAGS=-j2 # Travis is so parallel it runs out of memory. Limit that.
|
|
|
|
wine: &wine-build-env
|
|
|
|
- *linux-build-env
|
|
|
|
- CMAKE_FLAGS="-DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RC_COMPILER=i686-w64-mingw32-windres -DCMAKE_LINKER=i686-w64-mingw32-ld -DZLIB_ROOT=/home/travis/build/facebook/xcbuild/zlib"
|
|
|
|
|
|
|
|
shared:
|
|
|
|
env:
|
|
|
|
wine: &wine-env
|
|
|
|
- TEST_RUNNER=wine # Use Wine to run Windows tests.
|
|
|
|
packages:
|
|
|
|
linux: &linux-packages
|
|
|
|
- zlib1g-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libxml2-dev
|
|
|
|
|
2016-02-16 20:46:01 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-11-18 02:11:38 +00:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
compiler: clang3.8
|
|
|
|
env:
|
|
|
|
- CC=clang-3.8
|
|
|
|
- CXX=clang++-3.8
|
|
|
|
- *linux-build-env
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.8
|
|
|
|
- *linux-build-sources
|
|
|
|
packages:
|
|
|
|
- clang-3.8
|
|
|
|
- *linux-build-packages
|
|
|
|
- *linux-packages
|
2016-02-16 20:46:01 +00:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2016-05-24 02:59:19 +00:00
|
|
|
compiler: gcc4.8
|
2016-07-06 23:25:12 +00:00
|
|
|
sudo: required
|
2016-02-17 02:26:16 +00:00
|
|
|
env:
|
2016-05-24 02:59:19 +00:00
|
|
|
- CC=gcc-4.8
|
|
|
|
- CXX=g++-4.8
|
2016-11-18 02:11:38 +00:00
|
|
|
- *linux-build-env
|
2016-02-16 20:46:01 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-02-17 02:16:39 +00:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2016-11-18 02:11:38 +00:00
|
|
|
- *linux-build-sources
|
2016-02-16 20:46:01 +00:00
|
|
|
packages:
|
2016-05-24 02:59:19 +00:00
|
|
|
- gcc-4.8
|
|
|
|
- g++-4.8
|
2016-11-18 02:11:38 +00:00
|
|
|
- *linux-build-packages
|
|
|
|
- *linux-packages
|
2016-02-16 20:46:01 +00:00
|
|
|
- os: osx
|
2016-12-09 01:17:15 +00:00
|
|
|
osx_image: xcode8.2
|
2016-02-16 20:46:01 +00:00
|
|
|
compiler: clang
|
|
|
|
before_install:
|
|
|
|
- brew update
|
|
|
|
install:
|
|
|
|
- brew reinstall cmake
|
|
|
|
- brew reinstall ninja
|
2016-11-18 02:11:38 +00:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
compiler: mingw32
|
|
|
|
sudo: required
|
|
|
|
env:
|
|
|
|
- CC=i686-w64-mingw32-gcc
|
|
|
|
- CXX=i686-w64-mingw32-g++
|
|
|
|
- *wine-build-env
|
|
|
|
- *wine-env
|
|
|
|
before_install:
|
|
|
|
# Wine
|
|
|
|
- sudo dpkg --add-architecture i386
|
|
|
|
- sudo add-apt-repository -y ppa:wine/wine-builds
|
|
|
|
- sudo apt-get update -qq || true
|
|
|
|
- sudo apt-get install -qq -y --no-install-recommends winehq-devel
|
|
|
|
# zlib
|
|
|
|
- mkdir -p zlib
|
|
|
|
- pushd zlib
|
|
|
|
- pwd
|
|
|
|
- wget http://zlib.net/zlib128-dll.zip
|
|
|
|
- unzip zlib128-dll.zip
|
|
|
|
- popd
|
|
|
|
- mkdir -p build
|
|
|
|
- cp zlib/zlib1.dll build
|
|
|
|
# MinGW runtime
|
|
|
|
- cp /usr/lib/gcc/i686-w64-mingw32/4.8/libgcc_s_sjlj-1.dll build
|
|
|
|
- cp /usr/lib/gcc/i686-w64-mingw32/4.8/libstdc++-6.dll build
|
|
|
|
- cp /usr/i686-w64-mingw32/lib/libwinpthread-1.dll build
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- *wine-build-sources
|
|
|
|
packages:
|
|
|
|
- gcc-mingw-w64-i686
|
|
|
|
- g++-mingw-w64-i686
|
|
|
|
- *wine-build-packages
|