forked from docsteer/sacnview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (54 loc) · 1.85 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
language: cpp
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt594-trusty'
- sourceline: 'ppa:brightbox/ruby-ng'
packages:
# FPM dependencies
- build-essential
- ruby2.3
- ruby2.3-dev
# QT
- qt59base
- qt59multimedia
- qt59tools
# PCap
- libpcap-dev
install:
# Install FPM
- cd install/linux/ && cp _FPM_Makefile Makefile && make package && sudo dpkg -i fpm*.deb && fpm --version && cd ../../
# QT
- source /opt/qt*/bin/qt*-env.sh
script:
- qmake
- make -j$(nproc)
after_success:
- FILE=$(readlink -f install/linux/sACNView_*AppImage)
- BASENAME=$(basename $FILE)
- echo "Uploading $BASENAME to file.io..." && curl -sF "file=@$FILE" https://file.io | xargs printf "$BASENAME uploaded - %s\n"
- FILE=$(readlink -f install/linux/sacnview_*.deb)
- echo "Uploading $BASENAME to file.io..." && curl -sF "file=@$FILE" https://file.io | xargs printf "$BASENAME uploaded - %s\n"
- os: osx
osx_image: xcode8.3
before_install:
- brew update
install:
# PCap
- brew install libpcap
# QT
- brew install qt
- brew link --force qt
script:
- qmake
- make -j4
after_success:
- FILE=$(echo `pwd`/`ls install/mac/sACNView*.dmg`)
- BASENAME=$(basename $FILE)
- echo "Uploading $BASENAME to file.io..." && curl -sF "file=@$FILE" https://file.io | xargs printf "$BASENAME uploaded - %s\n"