-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (46 loc) · 1.54 KB
/
.travis.yml
File metadata and controls
53 lines (46 loc) · 1.54 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: cpp
matrix:
include:
- env: OS=linux
os: linux
compiler: gcc
dist: trusty
sudo: true
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y
- sudo apt-get update -qq
- sudo apt-get -y install qt510base libgl1-mesa-dev
- source /opt/qt*/bin/qt*-env.sh
- env: OS=osx
os: osx
osx_image: xcode7.2
compiler: clang
before_install:
- brew install qt5
- brew link qt5 --force
#- env: OS=windows
# os: windows
script:
- if [ "$OS" = "linux" ]; then
qmake "CONFIG+=MieSimulatorGUI" src/MieSimulatorGUI.pro;
make -j$(nproc);
make INSTALL_ROOT=appdir -j$(nproc) install ;
find appdir/;
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage";
chmod a+x linuxdeployqt-continuous-x86_64.AppImage;
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/MieSimulatorGUI.desktop -appimage;
fi
- if [ "$OS" = "osx" ]; then
qmake -config release -spec macx-xcode src/MieSimulatorGUI.pro;
xcodebuild -list -project MieSimulatorGUI_continuous.xcodeproj;
xcodebuild -scheme MieSimulatorGUI_continuous -configuration "Release";
fi
after_success:
- if [ "$OS" = "linux" ]; then
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh;
bash upload.sh MieSimulatorGUI*.AppImage*;
fi
deploy:
provider: releases
api_key: "GITHUB_OAUTH_TOKEN"
skip_cleanup: true