Testing a Discourse API client on Travis-CI

I have a R client for the Discourse API at GitHub - sckott/discgolf: Discourse API R client · GitHub

My test suite currently uses a Discourse installation I maintain. I’d prefer to test against a Discourse installation setup each time Travis is run (or cached if possible on Travis).

I could test against stored JSON blobs - but I’d like to see if I can test against a running Discourse installation if possible, and not a real installation with real users - that’s why I want one installed for testing.

As far as examples, it’s the entire test suite I want to run, but here is an example testing against the /posts route discgolf/tests/testthat/test-posts.R at master · sckott/discgolf · GitHub