您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526
  1. # default versions to test against
  2. # these can be overridden by setting the environment variables in the shell
  3. PHP_VERSION=php-5.6.8
  4. YII_VERSION=dev-master
  5. # ensure all the configuration variables above are in environment of the shell commands below
  6. export
  7. help:
  8. @echo "make test - run phpunit tests using a docker environment"
  9. # @echo "make clean - stop docker and remove container"
  10. test: docker-php
  11. composer require "yiisoft/yii2:${YII_VERSION}" --prefer-dist
  12. composer install --prefer-dist
  13. docker run --rm=true -v $(shell pwd):/opt/test yiitest/php:${PHP_VERSION} phpunit --verbose --color
  14. docker-php: dockerfiles
  15. cd tests/docker/php && sh build.sh
  16. dockerfiles:
  17. test -d tests/docker || git clone https://github.com/cebe/jenkins-test-docker tests/docker
  18. cd tests/docker && git checkout -- . && git pull
  19. mkdir -p tests/dockerids