yameveo/silex-skeleton

Silex skeleton for new projects with Docker, CircleCI, Behat & PHPSpec.

dev-master 2017-07-05 12:11 UTC

This package is auto-updated.

Last update: 2024-04-13 11:51:15 UTC


README

CircleCI

Silex Skeleton

This is a basic silex skeleton sample, steps to install it:

$ composer create-project --stability=dev yameveo/silex-skeleton name-of-your-project
$ cd name-of-your-project/
$ make setup PROJECT_NAME=name-of-your-project

At this point, the .git folder will be removed, so you can init the project into a new repo.

Environment pre-setup

Requirements (Mac OS):

  • Install Docker Toolbox
  • Have a virtual machine named default
  • Run eval $(docker-machine env)

Requirements (Any Linux):

  • Have docker installed

Run docker-machine ip and add the ip to your hosts file:

192.168.99.100 name-of-your-project.dev

Run environment

make dev

Kill the environment

make nodev

See the container logs

make logs

Enter a container

make enter

  Write the name of the service that you want to access, possible choices are:

    * phpfpm
    * nging

Service name: phpfpm
root@b20f96fdf431:/app/name-of-your-project#

TESTS

  • Run phpspec tests:
    bin/phpspec run
    
  • Run behat test:
    bin/behat