.travis.yml 875 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. language: php
  2. sudo: required
  3. matrix:
  4. include:
  5. - php: 7.2
  6. env: SW_VERSION="4.4.17"
  7. - php: 7.3
  8. env: SW_VERSION="4.4.17"
  9. - php: 7.4
  10. env: SW_VERSION="4.4.17"
  11. - php: master
  12. env: SW_VERSION="4.4.17"
  13. allow_failures:
  14. - php: master
  15. services:
  16. - mysql
  17. - redis-server
  18. - docker
  19. before_install:
  20. - export PHP_MAJOR="$(`phpenv which php` -r 'echo phpversion();' | cut -d '.' -f 1)"
  21. - export PHP_MINOR="$(`phpenv which php` -r 'echo phpversion();' | cut -d '.' -f 2)"
  22. - echo $PHP_MAJOR
  23. - echo $PHP_MINOR
  24. install:
  25. - cd $TRAVIS_BUILD_DIR
  26. - bash ./tests/swoole.install.sh
  27. - phpenv config-rm xdebug.ini || echo "xdebug not available"
  28. - phpenv config-add ./tests/ci.ini
  29. before_script:
  30. - cd $TRAVIS_BUILD_DIR
  31. - composer config -g process-timeout 900 && composer update
  32. script:
  33. - composer analyse
  34. - composer test