Particles in a gas are far apart compared to a solid or liquid, allowing it not to have a definitive shape or volume. This also means that gases can fill any container and be easily compressed.
The pressure would increase. When the temperature change form cold to hot, the gas will find ways to escape from containment. Thus, if it cannot escape that pressure will keep on increasing as the temperature rises.