ci-mac-build.sh 961 Bytes
Newer Older
1 2 3 4
#!/bin/bash

# Script abort on error
set -e
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
########################################
# Fetch test data
########################################
rm -rf TestData
git clone git@roosevelt:moebius/OpenFlipper-Test-Data.git TestData

########################################
# Build
########################################

if [ ! -d build-release ]; then
  mkdir build-release
fi

cd build-release

# Build without ports to avoid qt4 collision
22
/opt/local/bin/cmake ../ -DCMAKE_CXX_FLAGS='-std=c++11' -DQWT6_INCLUDE_DIR=/Users/jenkins/sw/qwt-6.1.3-qt5.11.3/lib/qwt.framework/Headers -DQWT6_LIBRARY=/Users/jenkins/sw/qwt-6.1.3-qt5.11.3/lib/qwt.framework -DQT5_INSTALL_PATH=/Users/jenkins/sw/Qt/5.11.3/clang_64/   
23

24
make -j2
25 26

# Required for the tests to build, if a package was generated
27 28 29 30 31 32 33 34 35 36
make fixbundle

cd ..

#create an artifact directory
if [ ! -d artifacts ]; then
  mkdir artifacts
fi

#cp -R * artifacts
37
rsync -a --exclude=artifacts --exclude=.git . ./artifacts