Add compile task and run on Travis.