.travis-build.sh 332 B

123456789101112131415
  1. #!/bin/sh
  2. set -e
  3. #if OS is linux or is not set
  4. if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then
  5. mkdir build && cd build
  6. cmake -DUSE_QT5=OFF ..
  7. make -j4
  8. elif [ "$TRAVIS_OS_NAME" = osx ]; then
  9. export Qt5_DIR=$(brew --prefix)/opt/qt5
  10. mkdir build && cd build
  11. cmake .. -GXcode
  12. xcodebuild
  13. fi