This repository has been archived by the owner on Apr 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
67 lines (61 loc) · 3.92 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
66
67
language: cpp
matrix:
include:
- os: linux
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
- g++-8
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- os: osx
osx_image: xcode10.1
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository ppa:webkit-team/ppa -y; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -q; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- wget -c -nv "https://d30pueezughrda.cloudfront.net/juce/juce-5.4.3-$TRAVIS_OS_NAME.zip"
- unzip ./juce-5.4.3-$TRAVIS_OS_NAME.zip -d $HOME
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -y install libasound2-dev libjack-jackd2-dev libxinerama-dev libgl1-mesa-dev libgtk-3-dev libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev; fi
script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then gcc --version; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cd "./Builds/LinuxMakefile"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then make -j$(nproc) CONFIG=Release; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then cd "./Builds/MacOSX"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then xcodebuild -project BeatBox.xcodeproj -alltargets -configuration Release build; fi
- cd ./../../
after_success:
- export VERSION=$(git describe --tags)
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DEPLOYFILE=BeatBox-$VERSION-x86_64.AppImage; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then wget -c -nv "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then chmod +x linuxdeploy-x86_64.AppImage; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then for size in 16 32 48 128 256; do dirname="BeatBox/usr/share/icons/hicolor/${size}x${size}/apps"; mkdir -p $dirname; cp ./resources/icons/icon_${size}px.png ./${dirname}/BeatBox.png; done; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./linuxdeploy-x86_64.AppImage --appdir=BeatBox --desktop-file=./resources/linux/BeatBox.desktop --executable=./Builds/LinuxMakefile/build/BeatBox --output=appimage; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export DEPLOYFILE=BeatBox-$VERSION.dmg; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then mkdir ./output; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then cp -r ./Builds/MacOSX/build/Release/* ./output/; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then cp ./resources/icons/icon.icns ./output/BeatBox.app/Contents/Resources/; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then hdiutil create /tmp/tmp.dmg -ov -volname "BeatBox-$VERSION" -fs HFS+ -srcfolder "./output/"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then hdiutil convert /tmp/tmp.dmg -format UDZO -o ./$DEPLOYFILE; fi
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: XkgO0PVsk8Gc0XaWxN+vuAwM3hBatGS8ORns81EHizQ1ScR+yJ8EG8ZkJLoFHe9UBZp/viVJg6DZLfwcuSYPG84KkIcpDdNPqYSGAggIWAhnmIoex7uJtMi+bLl56UFwr7YP0Dz0m/rDssSinWNxaCu80uNBXjHvHxvzPS30sjYLb1aC+RTVkSO5b06gZ4RD3bLEjnqp6CkltuRJTUZYyf8s+LfVnRckIJeT88nDhey/AXG/0R2hY53C/eGfXAl9JTQse43dQ19ZrXg45S/vggaLj/eLBBgpHz9xBH4p8dRtXjCcN90SmOfM+LmpqdSoD4eoii6/eEYW08PQdt4bkJGifhGxGQwPZ5LeObz5kePnq4DW6BwfRWEnMFvIxvcpxYgWPltWJhPUIusIGDPpYKh8FvrV9DpQmJJ0CmjKeobCxDHu8oetCg2fXug+4hm8f62/4lHnh0cKfGK3VS6ZHOY1Ccg5w1L8IU4en6We7DiyuMZ94JqISK0Lf5+qDGQalkDuKopHVC67c/hTfItkkStqFZ2LYrCod8DMAr3KmCMSqhF/bylpD2UvyDpPVgS+HG3Ww+pPWJMxX+2KMfu0Lnc6bhWbupfflTlTZk+NgZFTduyYvc0uiMz/fiJpeShp6Hv1Pg24QftrIcYYHpFbEg4ZIcpksDsT9OSaZxY2Xs4=
file: "$DEPLOYFILE"
on:
repo: sfztools/beatbox
tags: true