From 6e760c41f3864a4d9d07d9fd77110332c820cbe7 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+and-ri@users.noreply.github.com> Date: Wed, 3 Jul 2024 01:56:54 +0300 Subject: [PATCH] +laravel.com (#6595) * +laravel.com * simplify * pkgx.dev > pkgx.sh * debug on linux * +unzip * debugging * debugging --------- Co-authored-by: Jacob Heider --- projects/laravel.com/package.yml | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 projects/laravel.com/package.yml diff --git a/projects/laravel.com/package.yml b/projects/laravel.com/package.yml new file mode 100644 index 00000000..9af71f28 --- /dev/null +++ b/projects/laravel.com/package.yml @@ -0,0 +1,41 @@ +distributable: + url: https://github.com/laravel/installer/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: laravel/installer + +dependencies: + php.net: ^8.2 + getcomposer.org: ^2.7 + linux: + info-zip.org/unzip: ^6 + +build: + - composer install --no-dev + - mkdir -p {{prefix}}/libexec + - cp -r ./* {{prefix}}/libexec + - run: ln -s ../libexec/bin/laravel laravel + working-directory: ${{prefix}}/bin + +provides: + - bin/laravel + +test: + dependencies: + curl.se: '*' + pkgx.sh: ^1 + script: + - laravel --version | grep {{version}} + - laravel new blog --no-interaction + - run: + - php artisan serve --port=$PORT > server.log & + - PID=$! + - sleep 5 + - curl http://localhost:$PORT + - curl -s http://localhost:$PORT | grep Laravel + - kill $PID + - grep 'Server running' server.log + working-directory: blog + env: + PORT: $(pkgx get-port | tail -n1)