Source code for Pop Robin Cards
Switch branches/tags
Clone or download
Pull request Compare This branch is 154 commits behind hughgrigg:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
infrastructure
public
resources
routes
storage
tests
vagrant
.coveralls.yml
.env.example
.env.travis
.gitattributes
.gitignore
.nvmrc
.travis.yml
Gemfile
Gemfile.lock
Homestead.yaml.example
Makefile
Vagrantfile
ansible.cfg
artisan
composer.json
composer.lock
dependencyci.yml
gulpfile.js
package-lock.json
package.json
phpunit.xml
readme.md
server.php

readme.md

Pop Robin Cards

Build Status StyleCI Dependency Status Codacy Badge SensioLabsInsight

Source code for poprobincards.co.uk.

Up and running

You'll need Vagrant, VirtualBox and NFS installed.

git clone git@github.com:hughgrigg/poprobincards.git
cd poprobincards
git clone git@github.com: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 poprobincards repo.

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

192.168.10.10   www.poprobincards.test

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

vagrant up
vagrant ssh
cd ~/sites/poprobincards
.test.sh

You should now be able to access the development site at https://www.poprobincards.test

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 -i ./infrastructure/ansible/hosts