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
|
2019-04-16 23:17:36 +02:00
|
|
|
- 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:
|
2019-01-04 22:39:49 +01:00
|
|
|
- echo $DEPLOY_KEY_ENC | base64 --decode | openssl aes-256-cbc -K $encrypted_83a41ac424a6_key -iv $encrypted_83a41ac424a6_iv -out ~/.ssh/id_rsa -d
|
2019-01-05 00:59:00 +01:00
|
|
|
- chmod 600 ~/.ssh/id_rsa
|
2019-01-19 00:55:03 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
docker build -f Dockerfile -t strawberry-build .;
|
|
|
|
docker run --name build -itd strawberry-build /bin/bash;
|
|
|
|
docker exec build git clone https://github.com/jonaski/strawberry;
|
|
|
|
fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
git fetch --unshallow;
|
|
|
|
git pull;
|
|
|
|
brew update;
|
|
|
|
brew unlink python;
|
2019-04-18 18:28:37 +02:00
|
|
|
brew install glib pkgconfig libffi protobuf protobuf-c qt gettext gnutls fftw;
|
2019-01-19 00:55:03 +01:00
|
|
|
brew install sqlite --with-fts;
|
2019-06-12 06:34:59 +02:00
|
|
|
brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav;
|
2019-01-19 00:55:03 +01:00
|
|
|
brew install chromaprint;
|
|
|
|
brew install libcdio libmtp libimobiledevice libplist;
|
|
|
|
export Qt5_DIR=/usr/local/opt/qt5/lib/cmake;
|
2019-02-23 04:20:28 +01:00
|
|
|
export Qt5LinguistTools_DIR=/usr/local/Cellar/qt/$(ls /usr/local/Cellar/qt | head -n1)/lib/cmake/Qt5LinguistTools;
|
|
|
|
export PATH="/usr/local/opt/gettext/bin:$PATH";
|
2019-04-17 00:23:47 +02:00
|
|
|
export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/$(ls /usr/local/Cellar/libffi | head -n1)/lib/pkgconfig/:$PKG_CONFIG_PATH;
|
2019-01-19 18:00:47 +01:00
|
|
|
ls /usr/local/lib/gstreamer-1.0;
|
2019-01-19 00:55:03 +01:00
|
|
|
fi
|
2018-07-05 17:52:32 +02:00
|
|
|
before_script:
|
2019-06-12 06:34:59 +02:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker exec build cmake -Hstrawberry -Bbuild ; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir build; cd build; cmake .. -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
|
2019-01-19 00:55:03 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
make -j8;
|
|
|
|
sudo make install;
|
|
|
|
sudo ../dist/macos/macdeploy.py strawberry.app;
|
2019-06-12 06:34:59 +02:00
|
|
|
../dist/macos/create-dmg.sh strawberry.app;
|
2019-01-19 00:55:03 +01:00
|
|
|
fi
|
2019-01-03 21:45:27 +01:00
|
|
|
after_success:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ls -lh strawberry.dmg; fi
|
2019-06-12 06:34:59 +02:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_BRANCH" == "master" ]] && [[ "$CC_FOR_BUILD" == "gcc" ]]; then rsync -e "ssh -o StrictHostKeyChecking=no" -va strawberry*.dmg travis@echoes.jkvinge.net:/home/travis/builds/macos; fi
|
2019-01-03 21:45:27 +01:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- # Do not build tags that we create when we upload to GitHub Releases
|
|
|
|
- /^(?i:continuous)$/
|
|
|
|
|