update travis file

add 2.6 and 3.1 as tested versions, conditionall install
create resources for 2.6 support.
Merge pull request #243 from bodepd/travis

update travis file