Automate build and tests

integrate travis ci