-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
66 lines (60 loc) · 2.59 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
62
63
64
65
#--------------------------------------------------------------------------------
# Travis CI building configuration file for Linux Operating system
# created 2017-07-27
#--------------------------------------------------------------------------------
language: cpp
git:
depth: 1
branches:
only:
- master
cache:
directories:
- download
matrix:
include:
- os: linux
dist: trusty
sudo: required
env:
- _BUILD=linux
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update -qq
- sudo apt-get install qt5-default qtbase5-dev qt5-qmake qttools5-dev-tools libqt5concurrent5 libqt5test5 qtmultimedia5-dev libqt5multimedia5-plugins libqt5multimediawidgets5 qt5-image-formats-plugins libqt5serialport5-dev libasound2-dev libpulse-dev libudev-dev
script:
- qmake CONFIG-=debug CONFIG+=release
- make -s -j 4
- os: osx
osx_image: xcode10.3
sudo: required
addons:
homebrew:
packages:
- lftp
- axel
update: true
env:
- _BUILD=macos
before_install:
- mkdir -p download
- wget -c -O {download/,http://wohlsoft.ru/docs/Software/QtBuilds/}qt-5-12-4-static-macosx-10-14-5.tar.bz2
- wget -c -O {download/,http://wohlsoft.ru/docs/Software/QtBuilds/}qt-mac-serial-port-5.12-for-5.12.4.tar.gz
install:
- sudo mkdir -p /Users/StaticQt
- sudo chown -R travis /Users/StaticQt
- tar -x -j -f download/qt-5-12-4-static-macosx-10-14-5.tar.bz2 -C /Users/StaticQt
- tar -x -j -f download/qt-mac-serial-port-5.12-for-5.12.4.tar.gz -C /Users/StaticQt
- export QTDIR=/Users/StaticQt/5.12.4
- export PATH="$QTDIR"/bin:"$PATH"
- export QMAKESPEC="$QTDIR"/mkspecs/macx-clang
script:
- qmake CONFIG-=debug CONFIG+=release
- make -s -j 4
- lrelease FMBankEdit.pro
- mkdir -p "bin-release/OPN2 Bank Editor.app/Contents/Resources/translations/"
- cp src/translations/*.qm "bin-release/OPN2 Bank Editor.app/Contents/Resources/translations/"
- cd bin-release; zip -r -X "../opn2_bank_editor-macos.zip" "OPN2 Bank Editor.app"; cd ..
- cd utils/create-dmg; ./create-dmg.sh --volname "OPN2 Bank Editor" --window-size 800 600 --app-drop-link 450 320 ../../opn2_bank_editor-macos.dmg ../../bin-release; cd ../..
- ./utils/ftp-upload.sh ./macosx/opn2-bank-editor/ ./opn2_bank_editor-macos.zip
- ./utils/ftp-upload.sh ./macosx/opn2-bank-editor/ ./opn2_bank_editor-macos.dmg