So, my experience as an OSS developer is indeed that I wouldn't have switched to CI in the first place if Travis hadn't existed.
I had heard of CI testing, and sure it sounded good, but we had all been making due without it, and I didn't have time (and certainly the projects didn't have money) to set it up. But travis made it so damn easy and free to turn on, there was no reason not to try it. Once tried, there was no going back, we would never want to do otherwise.
Travis really defined this market and opened up CI testing to entire communities. We owe them (employees, former management) a debt of gratitude for that.
But then we come to depend upon it for sure. Which they had no obligation to supply it forever, and perhaps it wasn't even sustainable business to do so. So now what? Well, now we move over to other free options like Github Actions which fortunately exist.
But is it dangerous to depend on the largesse of for-profit companies? FOR SURE.
Is it, at this point, hard to figure out how to do otherwise? FOR SURE.
So, what could we do instead? In my dream world, we'd have a non-profit collaborative project to provide CI to open source on an ability-to-pay basis. Is that likely? I dunno, raising money for open source is already a problem. And it's a hard project. As long as there are companies providing it to us for free, it's definitely less likely.