.travis.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. dist: trusty
  2. sudo: required
  3. language: cpp
  4. branches:
  5. only:
  6. - master
  7. cache:
  8. directories:
  9. - $HOME/.cache
  10. env:
  11. global:
  12. # Environment variables for packpack
  13. - PRODUCT=flameshot
  14. - VERSION=0.6.0
  15. - RELEASE=1
  16. - ARCH=x86_64
  17. # - DOCKER_REPO=packpack/packpack
  18. # - DOCKER_REPO=vitzy/packpack
  19. - DOCKER_REPO=vitzy/flameshot
  20. #The actual list of distribution is available on
  21. #https://hub.docker.com/r/packpack/packpack/tags/
  22. #https://hub.docker.com/r/vitzy/packpack/tags/
  23. #https://hub.docker.com/r/vitzy/flameshot/tags/
  24. matrix:
  25. include:
  26. - os: linux
  27. env: OS=fedora DIST=27 EXTEN=rpm
  28. services: docker
  29. - os: linux
  30. env: OS=fedora DIST=28 EXTEN=rpm
  31. services: docker
  32. - os: linux
  33. # trusty: only for build & test & AppImage
  34. # 14.04 LTS; Qt version is 5.2.1, flameshot not support
  35. env: OS=ubuntu DIST=trusty EXTEN=AppImage
  36. - os: linux
  37. # 16.04 LTS
  38. env: OS=ubuntu DIST=xenial EXTEN=deb
  39. services: docker
  40. - os: linux
  41. # 18.04
  42. env: OS=ubuntu DIST=bionic EXTEN=deb
  43. services: docker
  44. - os: linux
  45. # 8
  46. env: OS=debian DIST=jessie EXTEN=deb
  47. services: docker
  48. - os: linux
  49. # 9
  50. env: OS=debian DIST=stretch EXTEN=deb
  51. services: docker
  52. # - os: osx
  53. # compiler: clang
  54. # osx_image: xcode9.2
  55. before_install:
  56. - chmod +x travis/*.sh
  57. - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then source travis/linux_before_install.sh; fi
  58. install:
  59. - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then source travis/linux_install.sh; fi
  60. script:
  61. # - git submodule update --init --recursive
  62. # - git describe --long
  63. - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then source travis/linux_script.sh; fi
  64. # - if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then source travis/osx_script.sh; fi
  65. - pwd && ls
  66. after_success:
  67. - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then source travis/linux_after_success.sh; fi
  68. # deploy:
  69. # # Deploy packages to Github Release
  70. # provider: releases
  71. # api_key: "GITHUB ENCYPTED OAUTH TOKEN"
  72. # file_glob: true
  73. # file: dist/*.{deb,rpm,AppImage,dmg}
  74. # skip_cleanup: true
  75. # on:
  76. # tags: true
  77. # branch: master