Preheat the oven to 350 degrees F. Grease two 8 1/2-by-4 1/2-by-2 1/2-inch loaf pans with cooking spray.
Combine the flour, baking soda, cinnamon, baking powder, salt, nutmeg and allspice in a small mixing bowl.
Beat the sugar, eggs, oil and vanilla in a medium bowl until well combined. Mix in the zucchini and pineapple. Add to the dry ingredients and mix well. Stir in the raisins.
Pour half the batter into each loaf pan. Bake, rotating the pans halfway through, until a toothpick inserted in the center comes out clean, about 50 minutes. Let the bread cool in the pans for 5 minutes, then carefully turn out the loaves to finish cooling on a wire rack.