Add `legacy` and `mobile` builds to travic-ci tests.