travis: add license checking rule

- Add travis check for licenses
- Add branch option to check script to make it faster