A WordPress theme I used to use on www.chriswiegman.com.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

53 lines
1.0 KiB

  1. sudo: false
  2. dist: trusty
  3. language: php
  4. notifications:
  5. email:
  6. on_success: never
  7. on_failure: change
  8. branches:
  9. only:
  10. - master
  11. cache:
  12. directories:
  13. - $HOME/.composer/cache
  14. matrix:
  15. include:
  16. - php: 7.2
  17. env: WP_VERSION=latest
  18. before_script:
  19. - export PATH="$HOME/.composer/vendor/bin:$PATH"
  20. - |
  21. if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
  22. phpenv config-rm xdebug.ini
  23. else
  24. echo "xdebug.ini does not exist"
  25. fi
  26. - |
  27. if [[ ! -z "$WP_VERSION" ]] ; then
  28. bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
  29. composer global require "phpunit/phpunit=4.8.*|5.7.*"
  30. fi
  31. - |
  32. if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
  33. composer global require wp-coding-standards/wpcs
  34. phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs
  35. fi
  36. script:
  37. - |
  38. if [[ ! -z "$WP_VERSION" ]] ; then
  39. phpunit
  40. WP_MULTISITE=1 phpunit
  41. fi
  42. - |
  43. if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
  44. phpcs
  45. fi