Bitcoin regtest mining
You can build your miner with a bash command:

$ while true; do bitcoin-cli -regtest generate 1; sleep 300; done


You'l get a block every 5'. If you want a better simulation of mainnet you could use a rndom sleep