test_install.sh 563 B

12345678910111213141516171819202122
  1. #!/bin/sh -e
  2. php ../../make_composer_json.php composer.json << EOF
  3. {
  4. "require": {
  5. "yiisoft/yii2": "~2.0.16"
  6. },
  7. "repositories": [
  8. {
  9. "type": "composer",
  10. "url": "https://asset-packagist.org"
  11. }
  12. ]
  13. }
  14. EOF
  15. $COMPOSER_BINARY install
  16. test -f vendor/autoload.php || (echo "vendor/autoload.php does not exist!"; exit 1)
  17. test -f vendor/yiisoft/extensions.php || (echo "vendor/yiisoft/extensions.php does not exist!"; exit 1)
  18. test -d vendor/yiisoft/yii2 || (echo "vendor/yiisoft/yii2 does not exist!"; exit 1)