Skip to content

Commit

Permalink
add dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
KuiKui committed Mar 4, 2015
1 parent 886354a commit f044135
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vendor/
composer.lock
composer.phar
Vagrantfile
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Redis PHP Mock [![Build Status](https://secure.travis-ci.org/M6Web/RedisMock.png?branch=master)](http://travis-ci.org/M6Web/RedisMock)
# Redis PHP Mock [![Build Status](https://secure.travis-ci.org/M6Web/RedisMock.svg?branch=master)](http://travis-ci.org/M6Web/RedisMock) [![Total Downloads](https://poser.pugx.org/m6web/redis-mock/downloads.svg)](https://packagist.org/packages/m6web/redis-mock)

PHP 5.3 library providing a Redis PHP mock for your tests.

Expand Down Expand Up @@ -99,17 +99,26 @@ $myRedisMock = $factory->getAdapter('My\Redis\Library');

## Tests

The development environment is provided by Vagrant and the [Xotelia box](https://github.com/Xotelia/VagrantBox).

```shell
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
$ cp Vagrantfile.dist Vagrantfile
$ vagrant up
$ vagrant ssh
```

```shell
$ cd /vagrant
$ composer install
$ ./vendor/bin/atoum
```

## Credits

Developped by the [Cytron Team](http://cytron.fr/) of [M6 Web](http://tech.m6web.fr/).
Developped by the [Cytron Team](http://cytron.fr/) of [M6 Web](http://tech.m6web.fr/).
Tested with [atoum](http://atoum.org).

## License

RedisMock is licensed under the [MIT license](LICENSE).

9 changes: 9 additions & 0 deletions Vagrantfile.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Vagrant::Config.run do |config|
config.vm.host_name = "RedisMock"

config.vm.box = "xotelia"
config.vm.box_url = "https://www.dropbox.com/s/mp2h1c8rlbom2sr/xotelia.box?dl=1"

config.vm.network :hostonly, "10.0.0.10", :netmask => "255.255.255.0"
config.vm.share_folder("vagrant-root", "/vagrant", ".", :nfs => true)
end

0 comments on commit f044135

Please sign in to comment.