The short answer is: yes, you can drink the tap water in Portugal. It isn't as nice as tap water from other parts of the world (Ireland and Scotland, for example), but it's perfectly safe to drink. You'll see plenty of Portuguese people buying bottled water, but that's just because it tastes nicer.