From 3d284d3c8bbf3dd49decadc25a2dcc097a7aecf9 Mon Sep 17 00:00:00 2001 From: Ani Date: Sun, 4 Jun 2017 19:42:06 +0100 Subject: [PATCH] Update TravisCI to build+upload AppImage for Linux (#2830) * Update TravisCI to build+upload AppImage for Linux Solves #2744 by @probonopd --- .travis.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index b5d8ce2532..5ab869339f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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=