mirror of
https://github.com/ivabus/pantry
synced 2024-11-21 16:05:08 +03:00
+laravel.com (#6595)
* +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:
parent
6459c5a07f
commit
6e760c41f3
1 changed files with 41 additions and 0 deletions
41
projects/laravel.com/package.yml
Normal file
41
projects/laravel.com/package.yml
Normal 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)
|
Loading…
Reference in a new issue