-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
61 lines (60 loc) · 2.58 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: cpp
matrix:
include:
- os: linux
dist: trusty
compiler: gcc
sudo: require
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y
- sudo apt-get update -qq
install:
- sudo apt-get -y install qt510base qt510tools qt510charts-no-lgpl libgl1-mesa-dev libhamlib-dev libhamlib2
- source /opt/qt*/bin/qt*-env.sh
script:
- mkdir build
- cd build
- qmake CONFIG+=release PREFIX=/usr ..
- make -j$(nproc)
before_deploy:
- make INSTALL_ROOT=appdir -j$(nproc) install
- find appdir
- mkdir -p appdir/usr/lib/
- cp /usr/lib/hamlib/*.so appdir/usr/lib/
- 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/*.desktop -extra-plugins=sqldrivers,platformthemes,iconengines/libqsvgicon.so -appimage
- mkdir package
- mv QLog*.AppImage* package/QLog.AppImage
- os: osx
compiler: clang
before_install:
- brew install qt5
- brew link qt5 --force
- brew install hamlib
- brew link hamlib --force
script:
- mkdir build
- cd build
- qmake -config release ..
- make
before_deploy:
- macdeployqt qlog.app
- cp /usr/local/lib/libhamlib.dylib qlog.app/Contents/Frameworks/libhamlib.dylib
- otool -L qlog.app/Contents/MacOS/qlog
- install_name_tool -change /usr/local/lib/libhamlib.dylib @executable_path/../Frameworks/libhamlib.dylib qlog.app/Contents/MacOS/qlog
- mkdir package
- zip -r package/qlog-osx.zip qlog.app
deploy:
provider: s3
bucket: "qlog.dl2ic.de"
region: "eu-central-1"
acl: public_read
skip_cleanup: true
local_dir: package
upload_dir: build
on:
repo: 7h0ma5/QLog
access_key_id: AKIAXYSRXXQSSBOIRSWX
secret_access_key:
secure: ogiYsKXOsGbBPuOl56VgIJ2HZ0cPhUeGzhd4FAADI0FymxndIjMqDIOvvs1M1y2GcFGnTsbfv16C8aCby2qMbqg3W5UoGbaD82JAsOjOt/Qo0VVA204QvRogUwQQO51QfLXiZIEGp45o6AFrLeF76ZLTX/GcP0oC7l78EnvYZeXkAt+WRZ2dPxkiJTtQupBIogNl4NGlYRhBjHYvLmwtVWLRESgltlXvD0A33X5bt0kUWgAPyAqtzoGABxqIcoDX267ZYx2eYwwfhSOY1ltEM7+BeMzs2QdbFh8qi2SxHXYO8XNmfJLRswzOld9xwtOFdl0cjIHRGOnDZ1hP3j2GDlfC5Oy9zYaj0RS0UMDQZwZ5rldYNfm+g8pQDIbNATcZtUx98VhM4JRlbDE2o66tLqQfrGDtT6gZox5p5ZKfArHHtMSrx+kBc/NH7nxVcypQ0LIwX8XKOkd66QrHseXy56zehjaxvA4WV878SrXxQOPXrjRXVgmyAUk0zHKS4Dcr/q813IWUE6dXJFZ4BSIDnrBu8nVxTXlm6ZKQwwgdhwWzs+61bRsDzode9pPuc12QYbnWftp9FOY8CaRBZdW+cMGQQv44r46ppw12Pku2lRN9FQroQg0r3wuLqNZA9XcQh/+gAr2zSsc44EDGSpv3feCUp6zI2yRKfENL18sJ9VY=