[DDF-466] Reorder commands to fix travis-ci breakage