.travis.yml 744 B

12345678910111213141516171819202122232425262728293031
  1. language: php
  2. php:
  3. - 7.2
  4. - 7.3
  5. - 8.0
  6. env:
  7. matrix:
  8. - COMPOSER_FLAGS=""
  9. before_install:
  10. - sudo apt-get update
  11. - travis_retry composer self-update
  12. - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
  13. - >
  14. [ -f ffmpeg-release/ffmpeg ] || (
  15. curl -O https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz &&
  16. mkdir -p ffmpeg-release &&
  17. tar Jxf ffmpeg-release-amd64-static.tar.xz --strip-components=1 -C ffmpeg-release
  18. )
  19. install:
  20. - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction
  21. script:
  22. - export PATH=$(readlink -f ffmpeg-release):$PATH
  23. - vendor/bin/phpunit tests
  24. cache:
  25. directories:
  26. - ffmpeg-release