-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
63 lines (53 loc) · 2.25 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
notifications:
email: false
language: cpp
sudo: false
# if pull request: always build
# if push: only build for master branch
# if: (type != push) OR (type = push AND branch = master)
matrix:
include:
- os: osx
env:
- BUILD_FOLDER="MacOSX"
- PROJUCER="$TRAVIS_BUILD_DIR/JUCE/extras/Projucer/Builds/MacOSX/build/Debug/Projucer.app/Contents/MacOS/Projucer"
- os: windows
env:
- MSBUILD_PATH="c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin"
- BUILD_FOLDER="VisualStudio2017"
- PROJUCER="$TRAVIS_BUILD_DIR/JUCE/extras/Projucer/Builds/VisualStudio2017/x64/Debug/App/Projucer.exe"
before_install:
# mac installs
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then gem install xcpretty; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then gem install xcpretty-travis-formatter; fi
# windows setup msbuild path
- if [[ $TRAVIS_OS_NAME == 'windows' ]]; then export PATH=$MSBUILD_PATH:$PATH; fi
#Build Projucer
- cd $TRAVIS_BUILD_DIR/JUCE/extras/Projucer/Builds/$BUILD_FOLDER
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then xcodebuild -project Projucer.xcodeproj > /dev/null; fi
- if [[ $TRAVIS_OS_NAME == 'windows' ]]; then msbuild.exe -v:quiet Projucer.sln; fi
script:
- cd $TRAVIS_BUILD_DIR/
- $PROJUCER --set-global-search-path $TRAVIS_OS_NAME defaultJuceModulePath $TRAVIS_BUILD_DIR/JUCE/modules
- $PROJUCER --resave Fire.jucer
- cd $TRAVIS_BUILD_DIR/Builds/$BUILD_FOLDER/
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then xcodebuild -project Fire.xcodeproj/ clean; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then xcodebuild -project Fire.xcodeproj/ -configuration Release | xcpretty -s -f `xcpretty-travis-formatter`; fi
- if [[ $TRAVIS_OS_NAME == 'windows' ]]; then msbuild.exe -v:normal Fire.sln; fi
before_deploy:
- sudo apt-get -y install zip
- cd $TRAVIS_BUILD_DIR/Builds/$BUILD_FOLDER/
# - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cd; fi
- if [[ $TRAVIS_OS_NAME == 'windows' ]]; then cd x64/Debug/VST3/; fi
- if [[ $TRAVIS_OS_NAME == 'windows' ]]; then zip -r ../../../../../Fire-win.zip Fire.vst3 -r
- cd ../../../../../
- ls
deploy:
provider: releases
api_key: ${GITHUB_TOKEN}
file:
- Fire-win.zip
skip_cleanup: true
on:
tags: true
- echo "SUCCESS"