Valence transitions in the heavy-fermion compound YbCuAl as a function of temperature and pressure