Then I would probably just setup regtest and mine in there. (not sure if this is possible but I think you can mine on regtest)
It is possible even if you use CPU for mining, but when I tried it, I had a lot of stale blocks, because the difficulty was too easy and mining was faster than sending blocks to the clients.