Either. Just make sure that you mount a cheap slick tire on the rear wheel. Most trainers eat tires for breakfast, and I'd hate to trash a $50+ race tire on the trainer.

I have my roadie on the trainer, along with the spare rear wheel devoted to that purpose.