+laravel.com (#6595)
Some checks failed
cd / tarball (push) Has been cancelled
cd / ingest (push) Has been cancelled
cd / pkg (push) Has been cancelled
cd / notify (push) Has been cancelled

* +laravel.com

* simplify

* pkgx.dev > pkgx.sh

* debug on linux

* +unzip

* debugging

* debugging

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
Andrew 2024-07-03 01:56:54 +03:00 committed by GitHub
parent 6459c5a07f
commit 6e760c41f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)