You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

234 lines
6.1 KiB

  1. language: c
  2. env:
  3. global:
  4. # Encrypted COVERITY_SCAN_TOKEN
  5. - secure: "p17X8wFVnUeU3oGAUeUpOJknniwIkliHaLLeHWNHrX1Op794acHEz8wVyuVHLxf5B1Irm8R4UXslzM4y/qAPIB03uaeiam9JJXLVXvKtalMxn856hx9+4TWie/HWQjoKQp4zEgUbLrvSkSW2NYUkFjnY3BvotoqyRW3BlYPonw0="
  6. matrix:
  7. include:
  8. - name: "Coverity"
  9. env:
  10. - CONFIGURE_OPTIONS=""
  11. - TARGET="coverity"
  12. compiler: clang
  13. os: linux
  14. dist: xenial
  15. sudo: required
  16. group: edge
  17. addons:
  18. coverity_scan:
  19. project:
  20. name: "libyal/libpff"
  21. description: "Build submitted via Travis CI"
  22. notification_email: joachim.metz@gmail.com
  23. build_command_prepend: "./synclibs.sh && ./autogen.sh && ./configure"
  24. build_command: "make -j4"
  25. branch_pattern: master
  26. - name: "Linux with clang"
  27. env:
  28. - CONFIGURE_OPTIONS=""
  29. - CFLAGS="--coverage"
  30. - LDFLAGS="--coverage"
  31. - TARGET="linux-clang"
  32. compiler: clang
  33. os: linux
  34. dist: xenial
  35. sudo: required
  36. group: edge
  37. - name: "Linux with gcc"
  38. env:
  39. - CONFIGURE_OPTIONS=""
  40. - CFLAGS="--coverage"
  41. - LDFLAGS="--coverage"
  42. - TARGET="linux-gcc"
  43. compiler: gcc
  44. os: linux
  45. dist: xenial
  46. sudo: required
  47. group: edge
  48. - name: "Linux with gcc on s390x (Docker)"
  49. env:
  50. - DOCKERHUB_REPO="s390x/ubuntu"
  51. - DOCKERHUB_TAG="bionic"
  52. - CONFIGURE_OPTIONS=""
  53. - CFLAGS="--coverage"
  54. - LDFLAGS="--coverage"
  55. - TARGET="docker"
  56. compiler: gcc
  57. os: linux
  58. dist: xenial
  59. sudo: required
  60. group: edge
  61. services:
  62. - docker
  63. - name: "Linux with gcc and wide character type (wchar_t) support"
  64. env:
  65. - CONFIGURE_OPTIONS="--enable-wide-character-type"
  66. - CFLAGS="--coverage"
  67. - LDFLAGS="--coverage"
  68. - TARGET="linux-gcc-wide-character-type"
  69. compiler: gcc
  70. os: linux
  71. dist: xenial
  72. sudo: required
  73. group: edge
  74. - name: "Linux with gcc without optimization"
  75. env:
  76. - CONFIGURE_OPTIONS="--enable-shared=no --enable-wide-character-type"
  77. - CFLAGS="--coverage -O0"
  78. - CPPFLAGS="-DOPTIMIZATION_DISABLED"
  79. - LDFLAGS="--coverage"
  80. - TARGET="linux-gcc-no-optimization"
  81. compiler: gcc
  82. os: linux
  83. dist: xenial
  84. sudo: required
  85. group: edge
  86. - name: "Linux with gcc and Python module"
  87. env:
  88. - CONFIGURE_OPTIONS="--enable-python"
  89. - CFLAGS="--coverage"
  90. - LDFLAGS="--coverage"
  91. - TARGET="linux-gcc-python"
  92. compiler: gcc
  93. os: linux
  94. dist: xenial
  95. sudo: required
  96. group: edge
  97. - name: "Linux with gcc and Python 2 module"
  98. env:
  99. - CONFIGURE_OPTIONS="--enable-python2"
  100. - CFLAGS="--coverage"
  101. - LDFLAGS="--coverage"
  102. - PYTHON_VERSION=2
  103. - TARGET="linux-gcc-python2"
  104. compiler: gcc
  105. os: linux
  106. dist: xenial
  107. sudo: required
  108. group: edge
  109. - name: "Linux with gcc and Python 3 module"
  110. env:
  111. - CONFIGURE_OPTIONS="--enable-python3"
  112. - CFLAGS="--coverage"
  113. - LDFLAGS="--coverage"
  114. - PYTHON_VERSION=3
  115. - TARGET="linux-gcc-python3"
  116. compiler: gcc
  117. os: linux
  118. dist: xenial
  119. sudo: required
  120. group: edge
  121. - name: "Linux with gcc and Python 2 module (setup.py)"
  122. env:
  123. - TARGET="linux-gcc-python-setup-py"
  124. compiler: gcc
  125. os: linux
  126. dist: xenial
  127. sudo: required
  128. group: edge
  129. python: 2.7
  130. - name: "Linux with gcc and Python 3 module (setup.py)"
  131. env:
  132. - TARGET="linux-gcc-python-setup-py"
  133. compiler: gcc
  134. os: linux
  135. dist: xenial
  136. sudo: required
  137. group: edge
  138. python: 3.4
  139. - name: "Linux with gcc and shared libraries"
  140. env:
  141. - CONFIGURE_OPTIONS=""
  142. - CFLAGS="--coverage"
  143. - LDFLAGS="--coverage"
  144. - TARGET="linux-gcc-shared"
  145. compiler: gcc
  146. os: linux
  147. dist: xenial
  148. sudo: required
  149. group: edge
  150. - name: "Linux with gcc, shared libraries and wide character type (wchar_t) support"
  151. env:
  152. - CONFIGURE_OPTIONS="--enable-wide-character-type"
  153. - CFLAGS="--coverage"
  154. - LDFLAGS="--coverage"
  155. - TARGET="linux-gcc-shared-wide-character-type"
  156. compiler: gcc
  157. os: linux
  158. dist: xenial
  159. sudo: required
  160. group: edge
  161. - name: "Linux with gcc and static executables support"
  162. env:
  163. - CONFIGURE_OPTIONS="--enable-static-executables"
  164. - CFLAGS="--coverage"
  165. - LDFLAGS="--coverage"
  166. - TARGET="linux-gcc-static-executables"
  167. compiler: gcc
  168. os: linux
  169. dist: xenial
  170. sudo: required
  171. group: edge
  172. - name: "Mac OS with clang"
  173. env:
  174. - CONFIGURE_OPTIONS=""
  175. - TARGET="macos-clang"
  176. compiler: clang
  177. os: osx
  178. osx_image: xcode8.3
  179. - name: "Mac OS with gcc"
  180. env:
  181. - CONFIGURE_OPTIONS=""
  182. - TARGET="macos-gcc"
  183. compiler: gcc
  184. os: osx
  185. osx_image: xcode8.3
  186. - name: "Mac OS with gcc and Python module"
  187. env:
  188. - CONFIGURE_OPTIONS="--enable-python"
  189. - TARGET="macos-gcc-python"
  190. compiler: gcc
  191. os: osx
  192. osx_image: xcode8.3
  193. - name: "Mac OS with gcc and Python 2 module"
  194. env:
  195. - CONFIGURE_OPTIONS="--enable-python2"
  196. - PYTHON_VERSION=2
  197. - TARGET="macos-gcc-python2"
  198. compiler: gcc
  199. os: osx
  200. osx_image: xcode8.3
  201. - name: "Mac OS 10.12 with gcc and Python 2 module (setup.py)"
  202. env:
  203. - TARGET="macos-gcc-python-setup-py"
  204. compiler: gcc
  205. os: osx
  206. osx_image: xcode8.3
  207. - name: "Mac OS 10.14 with gcc and Python 3.7 module (setup.py)"
  208. env:
  209. - TARGET="macos-gcc-python-setup-py37"
  210. compiler: gcc
  211. os: osx
  212. osx_image: xcode11
  213. language: shell
  214. - name: "Mac OS gcc and Python module and pkgbuild"
  215. env:
  216. - CONFIGURE_OPTIONS="--disable-dependency-tracking --prefix=/usr/local --enable-python --with-pyprefix"
  217. - TARGET="macos-gcc-pkgbuild"
  218. compiler: gcc
  219. os: osx
  220. osx_image: xcode8.3
  221. before_install:
  222. - .travis/before_install.sh
  223. install:
  224. - .travis/install.sh
  225. script:
  226. - .travis/script.sh
  227. after_success:
  228. - if test ${TARGET} = "linux-gcc-no-optimization"; then
  229. curl -o codecov.sh -s https://codecov.io/bash && sed 's/ -execdir / -exec /' -i ./codecov.sh && /bin/bash ./codecov.sh -n ${TARGET} -y .codecov.yml;
  230. fi
  231. - if test ${TARGET} = "macos-gcc-python-setup-py37" && test -n "${TRAVIS_TAG}"; then
  232. python3 -m twine upload dist/*.whl --username __token__ --password ${PYPI_TOKEN} --skip-existing;
  233. fi