-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
36 lines (32 loc) · 1.17 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: cpp
sudo: required
compiler: clang
os: osx
cache:
directories:
- ~/Qt/
before_script:
- export QTDIR=~/Qt/5.10.1/clang_64
- export PATH=$QTDIR/bin:$PATH
script:
- if [ ! -e ~/Qt/5.10.1/ ] ; then
echo "Download Qt started...";
wget https://download.qt.io/official_releases/qt/5.10/5.10.1/qt-opensource-mac-x64-5.10.1.dmg &> /dev/null;
sudo hdiutil attach -noverify ./qt-opensource-mac-x64-5.10.1.dmg;
/Volumes/qt-opensource-mac-x64-5.10.1/qt-opensource-mac-x64-5.10.1.app/Contents/MacOS/qt-opensource-mac-x64-5.10.1 --platform minimal --script qt_script_osx.qs;
fi
- git submodule update --init --recursive
- if [ -z "$TRAVIS_TAG" ]; then
cd Gui;
qmake DNAI.pro;
make -j 8;
cd ../Server;
qmake Server.pro;
make -j 8;
else
wget https://download.mono-project.com/archive/5.10.1/macos-10-universal/MonoFramework-MDK-5.10.1.47.macos10.xamarin.universal.pkg &> /dev/null;
sudo installer -pkg ./MonoFramework-MDK-5.10.1.47.macos10.xamarin.universal.pkg -target / &> /dev/null;
cd ./scripts/mac;
chmod +x install.sh;
./install.sh --compile=true --release "$TRAVIS_TAG";
fi