Merge pull request #2600 from dumganhar/mac-travis-support

issue #2105: Adding iOS travis support, not finished.
[Travis CI] Using linux by default. [ci skip]