forked from comocode/laravel-ab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis.build.sh
17 lines (16 loc) · 977 Bytes
/
travis.build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
composer self-update
composer create-project laravel/laravel:5.2.31 --prefer-dist build/laravel
mkdir -p ./build/laravel/vendor/comocode
ln -s `pwd` ./build/laravel/vendor/comocode/laravel-ab
cd ./build/laravel
touch storage/database.sqlite
cp ./vendor/comocode/laravel-ab/tests/source/laravel/app.php ./config/app.php
cp ./vendor/comocode/laravel-ab/tests/source/laravel/database.php ./config/database.php
cp ./vendor/comocode/laravel-ab/tests/source/laravel/routes.php ./app/Http/routes.php
sed -e 's/"app\/"/"app\/","ComoCode\\\\LaravelAb\\\\": "vendor\/comocode\/laravel-ab\/src"/' composer.json > temp.json && mv temp.json composer.json
sed -e s/\)\;/\)/g ./vendor/composer/autoload_classmap.php > temp.php && mv temp.php ./vendor/composer/autoload_classmap.php
cat ./vendor/comocode/laravel-ab/tests/source/laravel/autoload.php >> ./vendor/composer/autoload_classmap.php
composer dump-autoload
php artisan ab:migrate --force
nohup php artisan serve &