Improving Travis logic