.travis-build.sh 365 B

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