Clone of mesa.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

.travis.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. language: c
  2. os: osx
  3. cache:
  4. ccache: true
  5. env:
  6. global:
  7. - PKG_CONFIG_PATH=""
  8. matrix:
  9. include:
  10. - env:
  11. - BUILD=meson
  12. - env:
  13. - BUILD=scons
  14. before_install:
  15. - HOMEBREW_NO_AUTO_UPDATE=1 brew install expat gettext
  16. - if test "x$BUILD" = xmeson; then
  17. HOMEBREW_NO_AUTO_UPDATE=1 brew install ninja;
  18. fi
  19. - if test "x$BUILD" = xscons; then
  20. HOMEBREW_NO_AUTO_UPDATE=1 brew install scons;
  21. fi
  22. # Set PATH for homebrew pip3 installs
  23. - PYTHON_VERSION=$(python3 -V | awk '{print $2}' | cut -d. -f1-2)
  24. - PATH="$HOME/Library/Python/$PYTHON_VERSION/bin:${PATH}"
  25. # Set PKG_CONFIG_PATH for keg-only expat
  26. - PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:${PKG_CONFIG_PATH}"
  27. # Set PATH for keg-only gettext
  28. - PATH="/usr/local/opt/gettext/bin:${PATH}"
  29. # Install xquartz for prereqs ...
  30. - XQUARTZ_VERSION="2.7.11"
  31. - wget -nv https://dl.bintray.com/xquartz/downloads/XQuartz-${XQUARTZ_VERSION}.dmg
  32. - hdiutil attach XQuartz-${XQUARTZ_VERSION}.dmg
  33. - sudo installer -pkg /Volumes/XQuartz-${XQUARTZ_VERSION}/XQuartz.pkg -target /
  34. - hdiutil detach /Volumes/XQuartz-${XQUARTZ_VERSION}
  35. # ... and set paths
  36. - PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
  37. install:
  38. - if test "x$BUILD" = xmeson; then
  39. pip3 install --user meson;
  40. pip3 install --user mako;
  41. fi
  42. - if test "x$BUILD" = xscons; then
  43. pip2 install --user mako;
  44. fi
  45. script:
  46. - if test "x$BUILD" = xmeson; then
  47. meson _build -Dbuild-tests=true;
  48. ninja -C _build || travis_terminate 1;
  49. ninja -C _build test || travis_terminate 1;
  50. ninja -C _build install || travis_terminate 1;
  51. fi
  52. - if test "x$BUILD" = xscons; then
  53. scons force_scons=1 || travis_terminate 1;
  54. scons force_scons=1 check || travis_terminate 1;
  55. fi