summaryrefslogblamecommitdiffstats
path: root/.travis-build.sh
blob: 672d282cc4f50a18bc6bf411cf59bca3b38955de (plain) (tree)
1
2
3
4
5
6
7
8






                                                               
                           





                                      
#!/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 -DUSE_QT5=OFF .. 
    make -j4
elif [ "$TRAVIS_OS_NAME" = osx ]; then
    mkdir build && cd build
    cmake .. -GXcode
    xcodebuild
fi