.gitlab-ci.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. default:
  2. tags:
  3. - docker
  4. # Image from https://hub.docker.com/_/gcc/ based on Debian
  5. image: gcc:9
  6. .autoconf:
  7. stage: build
  8. before_script:
  9. - apt-get update &&
  10. apt-get install -y libogg-dev valgrind
  11. script:
  12. - ./autogen.sh
  13. - ./configure ${CONFIG_FLAGS}
  14. - make
  15. - make check
  16. autoconf:
  17. extends: .autoconf
  18. script:
  19. - ./autogen.sh
  20. - ./configure ${CONFIG_FLAGS}
  21. - make
  22. - make distcheck
  23. fixed-point:
  24. extends: .autoconf
  25. variables:
  26. CONFIG_FLAGS: --enable-fixed-point
  27. no-float:
  28. extends: .autoconf
  29. variables:
  30. CONFIG_FLAGS: --enable-fixed-point --disable-float-api
  31. vorbis-psy:
  32. extends: .autoconf
  33. variables:
  34. CONFIG_FLAGS: --enable-vorbis-psy
  35. valgrind:
  36. extends: .autoconf
  37. variables:
  38. CONFIG_FLAGS: --enable-valgrind
  39. no-binaries:
  40. extends: .autoconf
  41. variables:
  42. CONFIG_FLAGS: --disable-binaries
  43. .meson:
  44. stage: build
  45. image: 'debian:bookworm'
  46. before_script:
  47. - apt-get update &&
  48. apt-get install -y libogg-dev ninja-build meson valgrind
  49. script:
  50. - meson setup builddir ${CONFIG_FLAGS}
  51. - ninja -C builddir
  52. - ninja -C builddir test
  53. - ninja -C builddir install
  54. - test $(head -n1 meson.build | awk '/version/ { printf $NF }' | sed s/[\"\',]//g) = $(awk '/version/ { printf $NF }' library.json | sed s/[\"\',]//g)
  55. meson fixed-point:
  56. extends: .meson
  57. variables:
  58. CONFIG_FLAGS: -Dfixed-point=enabled
  59. meson no-float:
  60. extends: .meson
  61. variables:
  62. CONFIG_FLAGS: -Dfixed-point=enabled -Dfloat-api=disabled
  63. meson vorbis-psy:
  64. extends: .meson
  65. variables:
  66. CONFIG_FLAGS: -Dvorbis-psy=enabled
  67. meson valgrind:
  68. extends: .meson
  69. variables:
  70. CONFIG_FLAGS: -Dvalgrind=enabled
  71. meson no-binaries:
  72. extends: .meson
  73. variables:
  74. CONFIG_FLAGS: -Dtools=disabled -Dtest-binaries=disabled