.gitlab-ci.yml 823 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. image: gcc
  2. before_script:
  3. - apt-get -qq update
  4. - apt-get -qq install make automake autoconf autoconf-archive gettext autopoint pkgconf libgtk-3-dev
  5. - ./bootstrap
  6. cache:
  7. paths:
  8. - "src/*.o"
  9. - "src/tubeman"
  10. - "gtk/*.o"
  11. - "gtk/tubeman-gtk"
  12. - configure
  13. - makefile
  14. stages:
  15. - build
  16. - deploy
  17. build:
  18. stage: build
  19. script:
  20. - ./configure
  21. - make
  22. test:
  23. stage: build
  24. before_script:
  25. - apt-get -qq update
  26. - apt-get -qq install cppcheck
  27. script:
  28. - testing/cppcheck
  29. dist:
  30. stage: deploy
  31. script:
  32. - ./configure
  33. - make dist
  34. artifacts:
  35. paths:
  36. - tubeman-*.tar.gz
  37. package:
  38. stage: deploy
  39. script:
  40. - apt-get -qq install build-essential devscripts debhelper autotools-dev lintian
  41. - scripts/gendeb.sh
  42. artifacts:
  43. paths:
  44. - tubeman-*.deb