Update TravisCI to build+upload AppImage for Linux (#2830)

* Update TravisCI to build+upload AppImage for Linux

Solves #2744 by @probonopd
This commit is contained in:
Ani 2017-06-04 19:42:06 +01:00 committed by GitHub
parent 11f5f29c87
commit 3d284d3c8b
1 changed files with 18 additions and 16 deletions

View File

@ -6,7 +6,7 @@ os:
- linux
#- osx
osx_image: xcode6.4
# osx_image: xcode6.4
compiler:
- clang
@ -52,7 +52,7 @@ before_install:
sudo dpkg -i libglew1.13_1.13.0-2_amd64.deb libglew-dev_1.13.0-2_amd64.deb;
else
brew update; brew update;
brew install ccache glew wxwidgets llvm40;
brew install ccache glew llvm40;
fi;
before_script:
@ -60,14 +60,28 @@ before_script:
- source /opt/qt59/bin/qt59-env.sh
- mkdir build
- cd build
- cmake ..
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr
- make -j 3
- # AppImage generation
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
make DESTDIR=appdir install ; find appdir/
find ../bin
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
./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -appimage
find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
zip -r9 rpcs3.zip ./RPCS3*.AppImage;
curl ${UPLOAD_URL}${TRAVIS_COMMIT:0:7}-${TRAVIS_BUILD_NUMBER}-${CC}_linux64 --upload-file rpcs3.zip;
fi;
script:
# Add a command to show all the variables. May be useful for debugging Travis.
#- echo "--Shell Export Lists START--" ; export -p; echo "--Shell Export Lists STOP--";
# And to ensure the versions of toolchain
- echo "--CXX version?"; "$CXX" --version; echo "--CXX version confirmed";
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make -j 3; fi
#- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make -j 3; fi
addons:
apt:
@ -102,15 +116,3 @@ addons:
after_success:
- if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "$TRAVIS_OS_NAME" = linux ]; then coveralls --extension .c --extension .cpp --extension .h; fi
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then zip -r9 rpcs3.zip bin; curl ${UPLOAD_URL}${TRAVIS_COMMIT:0:7}-${TRAVIS_BUILD_NUMBER}-${CC} --upload-file rpcs3.zip; fi
deploy:
provider: releases
file: rpcs3.zip
skip_cleanup: true
on:
branch: master
repo: RPCS3/rpcs3
tags: true
api-key:
secure: BXyNziNYFLqLtY6Q58BDEUpRJr81HUtHpxf2Sr646bDcbG0Rf2rb2utqHZJ1Om926WdH7RqHuoVti4dr2X1lh4nHMkLD7MrIrfIkNN5T9aZdk19uw9IyMtz/cXon7/wqVo24tVqtBI0UghFxKii/GTDJEvRKgfpPp1e1vKSNGa4=