summaryrefslogtreecommitdiffstats
path: root/.travis-build.sh
blob: 35a908bfb917343de215f4f312162a74dc7ebfbb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

#if OS is linux or is not set
if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then 
    mkdir build && cd build
    cmake .. 
    make -j4
elif [ "$TRAVIS_OS_NAME" = osx ]; then
    mkdir build && cd build
    cmake .. -GXcode
    xcodebuild
fi