2017-04-02 12:17:32 +00:00
|
|
|
language: cpp
|
|
|
|
|
2017-09-25 17:51:49 +00:00
|
|
|
cache: ccache
|
2017-09-25 17:34:38 +00:00
|
|
|
|
2017-09-25 17:51:49 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: osx
|
|
|
|
before_install:
|
|
|
|
- brew update
|
|
|
|
install:
|
|
|
|
- brew install p7zip ccache
|
|
|
|
- curl -L -o qt5-mac.sh https://raw.githubusercontent.com/LRFLEW/OpenRCT2Launcher/develop/qt5-mac.sh
|
|
|
|
- chmod a+x qt5-mac.sh
|
|
|
|
- export PATH="$PATH:/usr/local/opt/ccache/libexec:$PWD/$(./qt5-mac.sh . base declarative tools webchannel positioning extra-webengine)"
|
|
|
|
after_success:
|
|
|
|
# TODO: include radare2/www for the webserver
|
|
|
|
- macdeployqt cutter.app -dmg
|
2017-09-26 08:32:03 +00:00
|
|
|
- ls cut*.dmg
|
2017-09-25 17:51:49 +00:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
before_install:
|
|
|
|
- sudo add-apt-repository ppa:beineri/opt-qt562-trusty -y
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
install:
|
|
|
|
- sudo apt-get -y install qt56base qt56webengine
|
|
|
|
- source /opt/qt5*/bin/qt5*-env.sh
|
|
|
|
after_success:
|
|
|
|
- sudo make INSTALL_ROOT=appdir install
|
|
|
|
- sudo chown -R $USER appdir
|
|
|
|
- cp -r /usr/share/radare2 appdir/usr/share/
|
|
|
|
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
|
|
|
|
- chmod a+x linuxdeployqt*.AppImage
|
|
|
|
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
|
|
|
|
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -verbose=2
|
|
|
|
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -appimage -verbose=2
|
|
|
|
- find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
|
2017-09-26 08:32:03 +00:00
|
|
|
- ls cut*.AppImage
|
2017-04-02 12:17:32 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- git submodule init ; git submodule update
|
|
|
|
- cd radare2
|
2017-09-25 17:51:49 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
INSTALL_TARGET=install sys/install.sh;
|
|
|
|
else
|
|
|
|
LDFLAGS=-headerpad_max_install_names INSTALL_TARGET=install sys/install.sh;
|
|
|
|
fi
|
2017-04-02 12:17:32 +00:00
|
|
|
- cd ..
|
2017-09-25 17:51:49 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2017-05-22 21:43:13 +00:00
|
|
|
- qmake PREFIX=/usr APPIMAGE=1 ../src
|
2017-04-02 12:17:32 +00:00
|
|
|
- make -j4
|