Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

27 lines
850B

  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