Advertisement
loloof64

ChessPgnReviser travis

Apr 24th, 2020
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. language: cpp
  2. compiler: gcc
  3. sudo: require
  4. dist: trusty
  5. deploy:
  6. github_token: $GITHUB_TOKEN
  7. local_dir: build
  8. on:
  9. branch: master
  10.  
  11. before_install:
  12. - sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y
  13. - sudo apt-get update -qq
  14. - mkdir -p appdir/usr/bin
  15. - mkdir -p appdir/translations
  16.  
  17. install:
  18. - sudo apt-get -y install qt510base qt510svg qt510translations libgl1-mesa-dev tree libgtk2.0-dev git
  19. - source /opt/qt*/bin/qt*-env.sh
  20.  
  21. script:
  22. - qmake CONFIG+=release PREFIX=/usr
  23. - make -j$(nproc)
  24. - make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
  25. - cp appdir/opt/ChessPgnReviser/bin/ChessPgnReviser appdir/usr/bin
  26. - cp translations/*.qm appdir/translations
  27. - git clone http://code.qt.io/qt/qtstyleplugins.git
  28. - cd qtstyleplugins
  29. - qmake
  30. - make -j$(nproc)
  31. - sudo make install
  32. - cd -
  33. - wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
  34. - chmod a+x linuxdeployqt-continuous-x86_64.AppImage
  35. # export VERSION=... # linuxdeployqt uses this for naming the file
  36. - ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage
  37. - mv Chess_Pgn_Reviser*.AppImage ChessPgnReviser.AppImage
  38. - chmod a+x ChessPgnReviser.AppImage
  39.  
  40. after_success:
  41. # find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq # for debugging
  42. # curl --upload-file APPNAME*.AppImage https://transfer.sh/APPNAME-git.$(git rev-parse --short HEAD)-x86_64.AppImage
  43. - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
  44. - bash upload.sh Chess_Pgn_Reviser*.AppImage
  45.  
  46. branches:
  47. except:
  48. - # Do not build tags that we create when we upload to GitHub Releases
  49. - /^(?i:continuous)/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement