Aroldis Chapman and the rest of the New York Yankees dressed in their Sunday best for a flight to Houston following a 5-2 win over the San Francisco Giants that completed a 6-4 homestand. Nathan Eovaldi (9-6) pitched shutout ball into the seventh inning, Carlos Beltran and Mark Teixeira hit early solo home runs of Jeff Samardzija (9-6) and Chad Green pitched 2 1/3 scoreless innings. New York trails AL East-leading Baltimore by 7 1/2 games and is 4 1/2 games behind Toronto for the league's second wild card, with the Astros and Detroit also ahead.