pantry/projects/laravel.com/package.yml
Andrew 6e760c41f3
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 (#6595)
* +laravel.com

* simplify

* pkgx.dev > pkgx.sh

* debug on linux

* +unzip

* debugging

* debugging

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
2024-07-02 18:56:54 -04:00

42 lines
950 B
YAML

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)