fix error in travis config and only need to test openjdk6