forked from billyquith/ponder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (41 loc) · 1.18 KB
/
.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
42
43
44
45
language: cpp
os:
- osx
- linux
compiler:
- clang
- gcc
env:
- BUILD_CONFIG=Debug
- BUILD_CONFIG=Release CFG_SHARED=ON
- BUILD_CONFIG=Release CFG_SHARED=OFF
osx_image: xcode7.3
sudo: required
dist: trusty
install:
- echo Lang:$LANG. OS:$TRAVIS_OS_NAME. CC:$CC.
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
if [ -z `brew list | grep doxygen` ]; then brew install doxygen; fi
if [ -z `brew list | grep cmake` ]; then brew install cmake; fi
if [ -z `brew list | grep lua` ]; then brew install lua; fi
brew outdated cmake || brew upgrade cmake
export PROJGEN=Xcode
fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -qq update
sudo apt-get install -y cmake doxygen lua5.2 liblua5.2
lua -v && which lua
export PROJGEN="Unix Makefiles"
fi
before_script:
- cmake --version
- mkdir build && cd build
- echo "Generating project for $PROJGEN, config $BUILD_CONFIG."
- cmake .. -G "$PROJGEN" -DBUILD_TEST=ON -DBUILD_TEST_LUA=ON -DBUILD_SHARED_LIBS=$CFG_SHARED
script:
- cmake --build . --config $BUILD_CONFIG && ctest -C $BUILD_CONFIG -V
notifications:
email: false