Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 147 lines (129 sloc) 8.33 KB
os: osx
osx_image: xcode9.2
compiler: clang
before_script:
- ls
- gem install xcpretty
- gem install xcpretty-travis-formatter
- git remote rm origin
- cd ..
- curl -L -o csound6.10.0-OSX-universal.dmg 'https://github.com/csound/csound/releases/download/6.10.0/csound6.10.0-OSX-universal.dmg'
- ls
- hdiutil attach csound6.10.0-OSX-universal.dmg
- cp -R /Volumes/Csound6.10.0/ Csound
- hdiutil detach /Volumes/Csound6.10.0/
- cd Csound
- sudo installer -pkg csound6.10.0-OSX-universal.pkg -target /
- sudo install_name_tool -id /Library/Frameworks/CsoundLib64.framework/CsoundLib64 /Library/Frameworks/CsoundLib64.framework/CsoundLib64
- cd /Users/travis/build/rorywalsh/
- git clone https://github.com/WeAreROLI/JUCE.git
- touch JUCE/
- cd /Users/travis/build/rorywalsh/JUCE
- git checkout tags/5.3.2
- cd /Users/travis/build/rorywalsh/JUCE/extras/Projucer/JuceLibraryCode
- sed -i '' "s/#define JUCER_ENABLE_GPL_MODE 1/#define JUCER_ENABLE_GPL_MODE 1/" AppConfig.h
- sed -i '' "s/#define JUCE_USE_DARK_SPLASH_SCREEN 1/#define JUCE_USE_DARK_SPLASH_SCREEN 0/" AppConfig.h
- cat AppConfig.h
- cd /Users/travis/build/rorywalsh/JUCE/extras/Projucer/Builds/MacOSX/
- xcodebuild -project Projucer.xcodeproj | xcpretty -f `xcpretty-travis-formatter` > /dev/null
- cd /Users/travis/build/rorywalsh/
- ls /Library/Frameworks/
- pwd
- cd /Users/travis/build/
- curl -L -o vstsdk368_08_11_2017_build_121.zip https://download.steinberg.net/sdk_downloads/vstsdk368_08_11_2017_build_121.zip
- unzip -q vstsdk368_08_11_2017_build_121.zip
- mkdir ~/SDKs
- cp -rf VST_SDK ~/SDKs
- ls /Users/travis/build/rorywalsh/
- cd /Users/travis/build/rorywalsh/cabbage/Builds/MacOSX
- curl -L -o Packages.dmg 'http://s.sudre.free.fr/Software/files/Packages.dmg'
- hdiutil mount Packages.dmg
- sudo installer -pkg /Volumes/Packages\ 1.2.4/Install\ Packages.pkg -target /
- hdiutil detach /Volumes/Packages\ 1.2.4/
- cd /Users/travis/build/rorywalsh/cabbage/Builds/MacOSX
script:
- export PROJUCER=/Users/travis/build/rorywalsh/JUCE/extras/Projucer/Builds/MacOSX/build/Debug/Projucer.app/Contents/MacOS/Projucer
- echo -en "travis_fold:start:buildingIDE"
- $PROJUCER --resave ../../CabbageIDE.jucer
- xcodebuild -project Cabbage.xcodeproj/ clean
- xcodebuild -project Cabbage.xcodeproj/ ARCHS="i386 x86_64" ONLY_ACTIVE_ARCH=NO -configuration Release | xcpretty -f `xcpretty-travis-formatter` > /dev/null
- echo -en "travis_fold:end:buildingIDE"
- echo -en "travis_fold:start:buildingLite"
- $PROJUCER --resave ../../CabbageLite.jucer
- xcodebuild -project CabbageLite.xcodeproj/ ARCHS="i386 x86_64" ONLY_ACTIVE_ARCH=NO -configuration Release | xcpretty -f `xcpretty-travis-formatter` > /dev/null
- echo -en "travis_fold:end:buildingLite"
- echo -en "travis_fold:start:buildingPlugins"
- $PROJUCER --resave ../../CabbagePluginMIDIEffect.jucer
- xcodebuild -project CabbagePlugin.xcodeproj clean
- xcodebuild -project CabbagePlugin.xcodeproj/ ARCHS="i386 x86_64" ONLY_ACTIVE_ARCH=NO -configuration Release GCC_PREPROCESSOR_DEFINITIONS="Cabbage_Plugin_Synth=1 Cabbage_MIDI_Effect=1 USE_DOUBLE=1 CSOUND6=1 MACOSX=1" | xcpretty -f `xcpretty-travis-formatter` > /dev/null
- cp -rf ./build/Release/CabbagePlugin.component/ ./build/Release/Cabbage.app/Contents/CabbagePluginMIDIEffect.component
- cp -rf ./build/Release/CabbagePlugin.component/ ./build/Release/CabbageLite.app/Contents/CabbagePluginMIDIEffect.component
- $PROJUCER --resave ../../CabbagePluginSynth.jucer
- xcodebuild -project CabbagePlugin.xcodeproj clean
- xcodebuild -project CabbagePlugin.xcodeproj/ ARCHS="i386 x86_64" ONLY_ACTIVE_ARCH=NO -configuration Release GCC_PREPROCESSOR_DEFINITIONS="Cabbage_Plugin_Synth=1 USE_DOUBLE=1 CSOUND6=1 MACOSX=1" | xcpretty -f `xcpretty-travis-formatter` > /dev/null
- cp -rf ./build/Release/CabbagePlugin.vst/ ./build/Release/Cabbage.app/Contents/CabbagePluginSynth.vst
- cp -rf ./build/Release/CabbagePlugin.vst/ ./build/Release/CabbageLite.app/Contents/CabbagePluginSynth.vst
- cp -rf ./build/Release/CabbagePlugin.component/ ./build/Release/Cabbage.app/Contents/CabbagePluginSynth.component
- cp -rf ./build/Release/CabbagePlugin.component/ ./build/Release/CabbageLite.app/Contents/CabbagePluginSynth.component
- $PROJUCER --resave ../../CabbagePlugin.jucer
- xcodebuild -project CabbagePlugin.xcodeproj clean
- xcodebuild -project CabbagePlugin.xcodeproj/ -configuration Release ARCHS="i386 x86_64" ONLY_ACTIVE_ARCH=NO GCC_PREPROCESSOR_DEFINITIONS="MACOSX=1 USE_DOUBLE=1" | xcpretty -f `xcpretty-travis-formatter` > /dev/null
- cp -rf ./build/Release/CabbagePlugin.vst/ ./build/Release/Cabbage.app/Contents/CabbagePluginEffect.vst
- cp -rf ./build/Release/CabbagePlugin.vst/ ./build/Release/CabbageLite.app/Contents/CabbagePluginEffect.vst
- cp -rf ./build/Release/CabbagePlugin.component/ ./build/Release/Cabbage.app/Contents/CabbagePluginEffect.component
- cp -rf ./build/Release/CabbagePlugin.component/ ./build/Release/CabbageLite.app/Contents/CabbagePluginEffect.component
- cp -rf ../../Examples ./build/Release/Cabbage.app/Contents/Examples
- cp -rf ../../Examples ./build/Release/CabbageLite.app/Contents/Examples
- echo -en "travis_fold:end:buildingPlugins"
- echo -en "travis_fold:start:gettingManual"
- curl -L -o CabbageManual.zip 'http://cabbageaudio.com/beta/CabbageManual.zip'
- ls
- unzip -q "CabbageManual.zip"
- ls
- cp -rf CabbageManual ././build/Release/Cabbage.app/Contents/CabbageManual
- cp -rf CabbageManual ././build/Release/CabbageLite.app/Contents/CabbageManual
- echo -en "travis_fold:end:gettingManual"
- echo -en "travis_fold:start:buildingZip"
- cd /Users/travis/build/rorywalsh/cabbage/Builds/MacOSX/build/Release/
- curl -L -o CabbageRack-0.5.0-mac.zip https://github.com/rorywalsh/CabbageRack/blob/master/dist/CabbageRack-0.5.0-mac.zip?raw=true
- unzip -q CabbageRack-0.5.0-mac.zip
- ls
- cp -R CabbageRack Cabbage.app/Contents/CabbageRack
- ls Cabbage.app/Contents/
- curl -L -o fmod_csound.dylib 'https://github.com/rorywalsh/csoundfmod/releases/download/v1.1/fmod_csound.dylib'
- ls
- cp fmod_csound.dylib Cabbage.app/Contents/fmod_csound.dylib
- ls Cabbage.app/Contents/
- zip -r CabbageOSX.zip Cabbage.app CabbageLite.app
- echo -en "travis_fold:end:buildingZip"
- cd /Users/travis/build/rorywalsh/cabbage/Builds/MacOSX/
- echo -en "travis_fold:start:buildingInstaller"
- packagesbuild InstallerTravis.pkgproj
- ls build
- echo -en "travis_fold:end:buildingInstaller"
before_deploy:
- cd /Users/travis/build/rorywalsh/cabbage/
- git remote add origin https://rorywalsh:${GH_TOKEN}@github.com/rorywalsh/cabbage.git
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- git tag -d vBeta
- git push --force origin :refs/tags/vBeta
- git tag vBeta -a -m "Latest OSX Beta Build"
- git push origin master && git push origin master --tags
deploy:
skip_cleanup: true
provider: releases
prerelease: true
api_key:
secure: t1RDH2xfgwBOAyPjqyGezDqxh5GbvOMoH0agnuiBNuIGELWAfA1c3ylcJVu96ydMefV+hbqXajzBS7F8a2doRpmxtAkjrLR27w+c8sW7r33OAfrLJKr3xFAq+tV2IMC6QlS6U8Ts8UxOZkZJd+MIpdT5PLTcFHWDh507pSupMSc7+o7JldKrJH33tiGpcSF+EFs2voSnFwRWW1sVlw7jBVQqhVlmkXbk76LIYxNOmHOjj0GCxUIqMkw55EhsK9BI0uPPN6+U9K0bwpSPAwljBchssAL3Pp46YsScyI8POzkn7PQNm4yXOoXEcJ4IQPfHtW7md/WMAyxwJnU+t36wWbxRUIuIIN74vzbB5KorG4Hj5C/alhhu7Zh/Zf8A1ThhJe19u6IEfItn9cQA9VCyWFMu30WzeJgTcyoPJe0HmbzK6lKe4sBuQWMZ9GL6a8tlVoH2KlSf2ZxwAppHIUgn2MuuvSWMwoSuISTfnzB3z4r2+24XTMzzaJPOAXDGGcHZ+DYlkuGQWztqC1eoj0YoHjupQAzNTw47EhyutIyPcO6O95k/9PH0DdbHlIMGdJBil1192Y9q3SrX8/hHiVmckCQGQT+C6QRSZsP/S+aOeLCn9aiXn2W1op7CYrWGkm8Q60W2hhXdk6Hqt3hxcQ1d5AvLGsC8yY5AIo1KP0FQ3i4=
file: /Users/travis/build/rorywalsh/cabbage/Builds/MacOSX/build/Cabbage.pkg
on:
repo: rorywalsh/cabbage
tags: false
all_branches: true
env:
global:
secure: Rutly8wQi3KfYQOf4du0QuPBbQgoYn8oMJUe51mpilcAX8kfmi98jocycek1wrkTOlZAZMJvA1GHC/Z6CN05NtnjrJGOW+9u6dEv/0Wrz2yYOBVZYZrvTyVoGJhs7Xy3mJ9IufihhDmfkWEIWb3uDEDBVz9QLGOg9JkK6090iGJZPq7oFY0xlJcxzpcbFOyYH2OfArJLVnrHWvfTzMv+zk5LXi70V2MeuHrKqK1uHt40GoxHhOdJGSkcm+l8zufA1o6I2RM21Shu/5s0is7PR7rUJzy9s5X4z9q/xKN3K0FLa/kmzOR5j2RYJWQdnnfe5HX6lkijot8FZQJl8oExQay/4og2gHf9UyJRr6/a2YLy25mCF7J9Va8ffxxHOiAP3jGu5QFjzWxuKxi6wQT5/XIvGbrx1whZ7b89Dmu2JTo0lHQQuiMHwqg19w37HH9t4YC1yKbiqmJLunJSekd96nRef4fqOxRiOgce2BX+fLM+UehEP+uZ3qFRdCJ8q6qVQv8bloGhmzv6h2GKvur1yqF584KETtkHd+0Ex9OhF+FwHUsbjHZeTfsMCbKOyawdx6oXN1mESfW/SdJYC0SFrDX6BI0R53aYLeEaOpqerP5I+E/cz2XAiwzM+v6kgNe//5dxmAkFCAedoBzscfbbzORJcGkR9Nhys9jJOD3cjiM=
branches:
except:
- vBeta