- Postgresql 9.6
- PHP 5.5
- Install Oracle VirtualBox 5.0.16 or greater (https://www.virtualbox.org/wiki/Downloads)
- Install Vagrant 1.8.1 or greater (https://www.vagrantup.com/downloads.html)
- Install Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
To enable longer paths than 260 chars:
- Open C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.2\plugins\providers\virtualbox\driver\version_4_3.rb (Path may vary)
- Find method 'share_folders' (lines 495-510)
- Relpace:
folder[:hostpath]]
with'\\\\?\\' + folder[:hostpath].gsub(/[\/\\]/,'\\')]
- Open command line as Administrator
- Go to the folder where is Vagrantfile
- Run command:
vagrant up
- Log into the VM, open Putty
- Host name: localhost
- Port: 2222
- Press Open button
- Username: vagrant
- Password: vagrant
Shared folder is in /vagrant directory:
cd /vagrant
- Execute deploy script:
/vagrant/db_evolutions.sh
- Open command line
- Go to the folder where is Vagrantfile
- Run command:
vagrant halt
- Go to /vagrant folder:
cd /vagrant
- Run js tests once:
npm run test-single-run
- Run js tests when code changes:
npm run test
- Run php tests:
composer test
- https://travis-ci.org/
deploy.sh
(SERVER_PASSWORD
,SERVER_USER_HOST
,DB_PASSWORD
,DB_USER
andDB_DATABASE
are variables defined in repository settings)