only build master branch on travis ci
refactor codes