-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (36 loc) · 939 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
matrix:
include:
- os: linux
- os: osx
allow_failures:
- os: linux
branches:
only:
- 2.0
language: cpp
before_install:
- |
case "${TRAVIS_OS_NAME}" in
"linux")
CMAKE_URL="http://www.cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz"
mkdir my_cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C my_cmake
export PATH=${TRAVIS_BUILD_DIR}/my_cmake/bin:${PATH}
;;
esac
- cmake --version
install:
- git submodule update --init --recursive
- mkdir TRAVIS_BUILD
- cd TRAVIS_BUILD
script:
- |
case "${TRAVIS_OS_NAME}" in
"linux")
../prepmake.sh ../examples/FBTestPlugin ./
make -j4
;;
"osx")
../prepmac.sh ../examples/FBTestPlugin ./
xcodebuild -parallelizeTargets -jobs 4 | egrep '^(/.+:[0-9+:[0-9]+:.(error):|fatal|===)' -
;;
esac