forked from OpenHantek/OpenHantek6022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis_inactive.yml
70 lines (63 loc) · 2.22 KB
/
.travis_inactive.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
66
67
68
69
70
language: cpp
dist: bionic
addons:
apt:
packages:
- qtbase5-dev
- qttools5-dev
- libqt5opengl5-dev
- libusb-1.0-0-dev
- libfftw3-dev
- binutils-dev
- rpm
matrix:
include:
- compiler: gcc
env: CMAKE_CXX_COMPILER=/usr/bin/g++
os: linux
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update; brew install qt5 fftw binutils create-dmg ;
export CMAKE_PREFIX_PATH=$(brew --prefix qt5) ;
echo "CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}" ;
fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then pip install cmake --user; fi
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} ../
script:
- make -j4 # create either a bin or a bundle (.app) - depending on openhantek/CMakeLists.txt
- sudo make -j4 package # simply pack the binary, otherwise populate the bundle below
- if test -d openhantek/OpenHantek.app; then
export PATH=${CMAKE_PREFIX_PATH}/bin:${PATH} ;
cd openhantek ;
macdeployqt OpenHantek.app -always-overwrite -verbose=1 ;
python ../../utils/macdeployqtfix/macdeployqtfix.py OpenHantek.app/Contents/MacOS/OpenHantek ${CMAKE_PREFIX_PATH} ;
create-dmg --volname OpenHantek --volicon ../../openhantek/res/images/openhantek.icns --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "OpenHantek.app" 200 190 --skip-jenkins --hide-extension "OpenHantek.app" --app-drop-link 600 185 --eula ../../LICENSE OpenHantek.dmg OpenHantek.app ;
cd .. ;
else
# ls -l packages ;
true;
fi
- ls -l openhantek || true
before_deploy:
- if test -d openhantek/OpenHantek.app; then
cd openhantek ;
sudo tar -cvzf ../packages/openhantek_*_osx_*.tar.gz OpenHantek.app ;
if test -f OpenHantek.dmg ; then
sudo mv OpenHantek.dmg ../packages/$(basename ../packages/openhantek_*_osx_*.tar.gz .tar.gz).dmg ;
fi ;
cd .. ;
else
true;
fi
- ls -l packages || true
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: packages/*
skip_cleanup: true
on:
tags: true