Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 2.33 KB

readme.md

File metadata and controls

76 lines (56 loc) · 2.33 KB

Ching Shop

Build Status StyleCI Coverage Status Dependency Status Codacy Badge SensioLabsInsight

Source code for ching-shop.com.

Up and running

You'll need Vagrant, VirtualBox and NFS installed.

git clone [email protected]:hughgrigg/ching-shop.git
cd ching-shop
git clone [email protected]:laravel/homestead.git ./vendor/laravel/homestead
cp Homestead.yaml.example Homestead.yaml

Change the map key in Homestead.yaml to where you have cloned the ching-shop repo.

Add this line to your hosts file (e.g. /etc/hosts):

192.168.10.10   www.ching-shop.dev

Then set up the Vagrant box, ssh into it and check everything is set up:

vagrant up
vagrant ssh
cd ~/sites/ching-shop
.test.sh

You should now be able to access the development site at https://www.ching-shop.dev

You may want to trust the local certificate, for example with these instructions for Chrome.

Running tests

phpunit --testsuite unit
phpunit --testsuite functional
phpunit --coverage-html build

Static analysis

phpcs --standard=./tests/analysis/phpcs.xml app
phpmd --strict app text ./tests/analysis/phpmd.xml

All tests and static analyses can be run with:

./test.sh

Deployment

pip install -r ./infrastructure/requirements.txt
ansible-playbook ./infrastructure/ansible/web.yml