.travis.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. language: php
  2. matrix:
  3. include:
  4. - os: linux
  5. dist: trusty
  6. sudo: required
  7. php: 7.0
  8. - os: linux
  9. dist: trusty
  10. sudo: required
  11. php: 7.1
  12. - os: osx
  13. sudo: required
  14. language: generic
  15. env:
  16. - _PHP: 'php70'
  17. - os: osx
  18. sudo: required
  19. language: generic
  20. env:
  21. - _PHP: 'php71'
  22. addons:
  23. apt:
  24. packages:
  25. - gearman-job-server
  26. - libgearman-dev
  27. - gearman-tools
  28. before_install:
  29. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
  30. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/dupes ; fi
  31. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/versions ; fi
  32. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/homebrew-php ; fi
  33. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gearman ; fi
  34. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start gearman ; fi
  35. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install $_PHP ; fi
  36. script:
  37. - phpize
  38. - ./configure
  39. - make
  40. - REPORT_EXIT_STATUS=1 make test