Last active
August 11, 2016 13:30
-
-
Save dbushenko/c92e2d97af9084e2dd20a0082bc050aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(task update-version | |
"Updates version of the software" | |
(start [:shell (str *src-dir* "update-version.sh")]) | |
(stop :kill)) | |
(task run-zookeeper | |
"Runs zookeeper" | |
(depends-on update-version) | |
(start [:shell (str *base-dir* "bin/zookeeper.sh")] | |
[:finish-when :stdout :regexp "\\.started\\."]) | |
(stop :kill)) | |
(task run-kafka | |
"Runs kafka" | |
(depends-on run-zookeeper) | |
(start [:shell (str *base-dir* "bin/kafka.sh")] | |
[:finish-when :stdout :regexp "\\.started\\."]) | |
(stop :kill)) | |
(task run-broker | |
"Runs broker" | |
(depends-on run-kafka) | |
(start [:shell (str *src-dir* "broker/start.sh")] | |
[:finish-when (file *src-dir* "broker/logs.log") :regexp "\\.started\\."]) | |
(stop [:http-request "http://localhost:5000/stop"])) | |
(task run-consumer-db | |
"Runs consumer-db" | |
(depends-on run-kafka) | |
(start [:shell (str *src-dir* "consumer-db/start.sh")] | |
[:finish-when :stderr :regexp "\\.started\\."]) | |
(stop [:http-request "http://localhost:5001/stop"])) | |
(task run-tests | |
(depends-on run-broker run-consumer-db) | |
(start [:shell (str *src-dir* "tests/start.sh")])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment