Test both CPU and GPU in Travis.