use snippet from travis