[test] Adding travis and pre-commit