Add `legacy` and `mobile` builds to .travis.yml.