A Slack integration with Raspberry Pi to become an on-demand Music Box
- Get composer & run
composer install
- nginx, gearman server, supervisor
- php, php-curl, php-gearman
- Copy
config/local.php_sample
toconfig/local.php
Run all test cases:
./phpunit.sh
Run single test caces:
./phpunit.sh tests/SampleTest.php
Code coverage is generated at var/coverage.txt
curl -XPOST http://<host>/ --data "text=http://www.nhaccuatui.com/bai-hat/say-you-do-tien-tien.u29bozMlBM4b.html"
curl -XPOST http://<host>/ --data "text=http://www.nhaccuatui.com/playlist/noi-di-ma-single-vicky-nhung.7tPbNofSxAkt.html"
Pi is running on PHP 5.4