Sample Laravel Project with Tests
This is a part of Laravel Test Guideline Project, made by Framgia Vietnam.
Build Status
Scrutinizer CI
Travis CI
Circle CI
Framgia CI
Installation
Docker
- Copy file
.env.docker.example
to.env
- Run
docker-compose up -d
command - Enter the
laravel_test_examples_workspace
container
docker exec -ti laravel_test_examples_workspace /bin/bash
- Install project dependencies
composer install
yarn
- Run migration
php artisan migrate
php artisan migrate --database=mysql_test
- Generate application encryption key
php artisan key:generate
- Check the service online at http://0.0.0.0:8000/
Integrate with CI services
- For Scrutinizer CI integration, please refer .scrutinizer.yml configuration file.
- For Travis CI integration, please refer .travis.yml. Moreover, Travis CI only support Mysql 5.6 by default, that causes the migration to be failed. Therefore, the .travis.install-mysql-5.7.sh file is also included too, to replace the default 5.6 version with the newest 5.7 version.
- For Circle CI, please refer .circleci/config.yml file.
- For Framgia CI, please refer .drone.yml and .framgia-ci.yml files.