update travis file

add 2.6 and 3.1 as tested versions, conditionall install
create resources for 2.6 support.