strawberry-audio-player-win.../.travis.yml

33 lines
1.8 KiB
YAML
Raw Normal View History

2018-09-11 23:32:19 +02:00
sudo: required
2018-07-05 17:18:49 +02:00
language: C++
2018-09-12 19:42:04 +02:00
os:
- linux
- osx
2018-09-11 23:32:19 +02:00
services:
- docker
2018-07-05 17:18:49 +02:00
compiler:
- gcc
- clang
2018-09-11 23:32:19 +02:00
2018-07-05 17:18:49 +02:00
before_install:
2018-09-12 19:42:04 +02:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -f Dockerfile -t strawberry-build . ; fi
2018-09-12 21:09:00 +02:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run --name build -itd strawberry-build /bin/bash ; fi
2018-09-12 22:14:37 +02:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker exec build git clone https://github.com/jonaski/strawberry ; fi
2018-09-12 19:42:04 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python ; fi
2018-09-12 20:56:51 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install glib pkgconfig protobuf protobuf-c qt ; fi
2018-09-12 19:42:04 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sqlite --with-fts ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gstreamer gst-plugins-base ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gst-plugins-good --with-flac ; fi
2019-01-03 19:40:16 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gst-plugins-bad gst-plugins-ugly gst-libav ; fi
2018-09-12 19:42:04 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install chromaprint ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export Qt5_DIR=/usr/local/opt/qt5/lib/cmake ; fi
2018-07-05 17:52:32 +02:00
before_script:
2018-11-27 19:36:22 +01:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker exec build cmake -Hstrawberry -Bbuild -DENABLE_STREAM_DEEZER=ON ; fi
2019-01-03 21:21:19 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir build; cd build; cmake .. -DFORCE_GIT_REVISION="0.0.0-0-g0000000" -DUSE_BUNDLE=ON; fi
2018-09-12 20:12:34 +02:00
script:
2018-09-12 22:15:19 +02:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker exec build make -C build -j8 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make -j8 ; fi
2019-01-03 19:45:51 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ../dist/macos/macdeploy.py strawberry.app ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ../dist/macos/create-dmg.sh strawberry.app ; fi