/tiki-takka

Consul & mesos connection utilities

Primary LanguageScalaApache License 2.0Apache-2.0

Tiki-Takka

Build

mvn package -Ppackage

DEV Notes

Testing:

  • mvn test -> Compile and run unit test.
  • Skipping tests: -DskipUTs -DskipITs
  • mvn integration-test -> Compile and execute both unit and integration tests.
  • mvn integration-test -DskipUTs -> Compile and execute integration tests.
  • mvn test -Dtest=com.stratio.tikitakka.core.CoreTest -> Compile and execute just the specified test class.
  • mvn test -Dmaven.surefire.debug -Dtest=XX -> Debug Unit Tests
  • mvn integration-test -Dmaven.failsafe.debug -DskipUTs -Dit.test=XX -> Debug Integration Tests
Requisites for integration Tests
  • A consul docker (docker run -d -p 8500:8500 consul)
  • A mesos cluster with marathon

There are two docker compose in the integration-env folder: to run it execute the following commands:

cd integration-env
docker-compose -f docker-compose-consul.yml up -d
docker-compose -f docker-compose-mesos.yml up -d

Other parameters:

Continuos compilation

  • mvn compile scala:cc -DrecompileMode=incremental

Test coverage:

Execute in dev mode:

Previously add a dev_application.conf file on commons/src/main/resources folder with your environment configuration. (!DO NOT synchronize this file on GitHub)

  • mvn verify -Pdev
  • mvn verify -Pdev -Pdebug -> run in debug mode

Distribution:

  • RPM/DEB: From parent folder -> mvn package -Ppackage