[Travis] update Travis yaml file to build dependencies