LedgerSMB
The foundation for your business
Fork me on GitHub
[ledgersmb-devel] New Docker Compose based development & (local) test infrastructure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ledgersmb-devel] New Docker Compose based development & (local) test infrastructure



Hi all,


This week, I completed Docker Compose based development & test infrastructure which will help you get started with just a few commands:

  $ git clone https://github.com/ledgersmb/LedgerSMB.git ledgersmb
  $ git clone https://github.com/ledgersmb/ledgersmb-dev-docker.git
  $ cd ledgersmb
  $ LSMB_DEV_VERSION=master docker-compose \
         -f ../ledgersmb-dev-docker/docker-compose.yml up -d

With these 3 commands, you have a fully operational environment ready for development of LedgerSMB on your local machine with all the dependencies (inside the docker containers) required to run the test suite. The Docker Compose file starts 3 containers wrapping the current directory (ledgersmb) and starting all the required processes for testing.

Running the test-suite (basic part) is as easy as:

  $ docker exec -ti lsmb-master-devel prove


and running the full test suite is as easy as invoking:

  $ docker exec -ti lsmb-master-devel \
       prove --pgtap-option dbname=lsmbtestdb -r t/ xt/

If you changed the Perl sources, please run

   $ docker restart lsmb-master-devel

before continuing your tests (Starman needs to be reloaded to serve the new logic).


If you wanted to contribute, but preparing a development environment looked daunting, this may be the right time to dip your toe and try the waters!



--
Bye,

Erik.

http://efficito.com -- Hosted accounting and ERP.
Robust and Flexible. No vendor lock-in.
_______________________________________________
devel mailing list
..hidden..
https://lists.ledgersmb.org/mailman/listinfo/devel