OPUS4 / opus4-common

Core package for OPUS 4.
Other
0 stars 5 forks source link

Setup Vagrant als mobile Entwicklungsumgebung #44

Closed j3nsch closed 2 years ago

j3nsch commented 2 years ago

Mit Vagrant (https://www.vagrantup.com/) lässt sich eine Entwicklungumgebung definieren, die auf den verschiedensten Systemen, wie Windows, Linux und Mac-OS, gestartet werden kann. Das soll es neuen Entwicklern und anderen Nutzern leicht machen die Unit Tests ausführen zu können.

j3nsch commented 2 years ago

The new Vagrantfile should make it easy to run the unit tests and check the coding style quickly on any system. You need to install Vagrant and VirtualBox.

https://learn.hashicorp.com/tutorials/vagrant/getting-started-index?in=vagrant/getting-started

Afterwards you should be able to start the VM using

vagrant up

This might take a few minutes, the first time. Once it is done you can SSH into the virtual machine

vagrant ssh 

It will start in the /vagrant folder which is your synchronized project folder. There you can run composer test and composer cs-check.

The idea is that you use an editor installed on your system and use Vagrant to run tests and other things that require a special environment.

j3nsch commented 2 years ago

@kaustabhbarman, @extracts, @haogatyp This seems to be working. If you are interested and have time, please, try it out and let me know if there are any issues. I will see if I can make this work for the more complex packages as well.

j3nsch commented 2 years ago

I will close this issue, because it seems to work as it is now, but feel free to comment here. For specific improvements, we will create new issues.

j3nsch commented 2 years ago

What I don't know yet is, how to setup IntelliJ on the host to run unit tests in the Vagrant VM and do debugging. It seems like it is possible. It would be important for "real" development.

j3nsch commented 2 years ago

@saschaszott Any thoughts on Vagrant?