.travis.yml 957 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. language: php
  2. env:
  3. matrix:
  4. - PIMPLE_EXT=no
  5. - PIMPLE_EXT=yes
  6. global:
  7. - REPORT_EXIT_STATUS=1
  8. php:
  9. - 5.3
  10. - 5.4
  11. - 5.5
  12. - 5.6
  13. - 7.0
  14. - 7.1
  15. before_script:
  16. - composer self-update
  17. - COMPOSER_ROOT_VERSION=dev-master composer install
  18. - if [ "$PIMPLE_EXT" == "yes" ]; then sh -c "cd ext/pimple && phpize && ./configure && make && sudo make install"; fi
  19. - if [ "$PIMPLE_EXT" == "yes" ]; then echo "extension=pimple.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
  20. script:
  21. - cd ext/pimple
  22. - if [ "$PIMPLE_EXT" == "yes" ]; then yes n | make test | tee output ; grep -E 'Tests failed +. +0' output; fi
  23. - if [ "$PIMPLE_EXT" == "yes" ]; then export SYMFONY_DEPRECATIONS_HELPER=weak; fi
  24. - cd ../..
  25. - ./vendor/bin/simple-phpunit
  26. matrix:
  27. include:
  28. - php: hhvm
  29. dist: trusty
  30. env: PIMPLE_EXT=no
  31. exclude:
  32. - php: 7.0
  33. env: PIMPLE_EXT=yes
  34. - php: 7.1
  35. env: PIMPLE_EXT=yes