1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-11 16:26:14 +01:00
strawberry-audio-player-win.../.travis.yml

52 lines
2.0 KiB
YAML
Raw Normal View History

2020-04-07 17:05:01 +02:00
sudo: required
language: C++
os:
- osx
compiler:
- gcc
before_install:
- if ! [ "$DEPLOY_KEY_ENC" == "" ]; then
echo $DEPLOY_KEY_ENC | base64 --decode | openssl aes-256-cbc -K $encrypted_83a41ac424a6_key -iv $encrypted_83a41ac424a6_iv -out ~/.ssh/id_rsa -d ;
chmod 600 ~/.ssh/id_rsa ;
fi
2020-08-22 14:02:12 +02:00
- git fetch --unshallow
- git pull
- brew update
- travis_wait 120 brew upgrade || echo "Failed"
- travis_wait 120 brew upgrade || echo "Failed"
- brew unlink python@2
- brew install glib pkgconfig libffi protobuf protobuf-c qt gettext gnutls fftw sqlite chromaprint zlib taglib
- brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav
- brew install libcdio libmtp
- brew install create-dmg
- brew cask install sparkle
- sudo ln -s /usr/local/Caskroom/sparkle/$(ls /usr/local/Caskroom/sparkle | head -n1)/Sparkle.framework /Library/Frameworks/Sparkle.framework
- sudo ln -s /usr/local/Caskroom/sparkle/$(ls /usr/local/Caskroom/sparkle | head -n1)/Sparkle.framework.dSYM /Library/Frameworks/Sparkle.framework.dSYM
- export Qt5_DIR=/usr/local/opt/qt5/lib/cmake
- export Qt5LinguistTools_DIR=/usr/local/opt/qt5/lib/cmake/Qt5LinguistTools
- ls /usr/local/lib/gstreamer-1.0
2020-04-07 17:05:01 +02:00
before_script:
2020-08-22 14:02:12 +02:00
- mkdir build
- cd build
- cmake .. -DUSE_BUNDLE=ON
2020-04-07 17:05:01 +02:00
script:
2020-08-22 14:02:12 +02:00
- make -j8
- make install
- make dmg
2020-04-07 17:05:01 +02:00
after_success:
2020-08-22 14:02:12 +02:00
- ls -lh strawberry*.dmg
2020-04-07 17:05:01 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$CC_FOR_BUILD" == "gcc" ]] && [ -f ~/.ssh/id_rsa ]; then
if [[ "$TRAVIS_BRANCH" == "master" ]]; then
2020-08-26 22:35:18 +02:00
rsync -e "ssh -o StrictHostKeyChecking=no" -va strawberry*.dmg travis@echoes.jkvinge.net:/home/travis/builds/macos/highsierra/;
2020-04-07 17:05:01 +02:00
elif [[ "$TRAVIS_BRANCH" == "macos" ]]; then
2020-08-26 22:35:18 +02:00
rsync -e "ssh -o StrictHostKeyChecking=no" -va strawberry*.dmg travis@echoes.jkvinge.net:/home/travis/builds/macos/highsierra/;
2020-04-07 17:05:01 +02:00
fi
fi
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/