Shares of XPO Logistics (XPO - Get Report) and the broader Dow Transports index rose Tuesday after trucking company J.B. Hunt reported a strong second-quarter 2019. 

XPO's stock climbed 6.1% to $62.52, as investors expect a strong earnings report for XPO on Aug. 1 in light of Tuesday's J.B. Hunt result. 

The Dow Transports Index, of which J.B. Hunt is a component, was rising 2.3% Tuesday. All components of the index rose. J.B. Hunt was the biggest gainer on the index. Its shares rose 8% to $100.  

J.B. Hunt's earnings per share, adjusted for a one-time insurance-claim item, came in at $1.37, beating Wall Street's expectations of $1.34. The EPS result was flat year-over-year.

Revenue was $2.26 billion, meeting analysts' estimates. The revenue result was a 5.7% year-over-year increase. Intermodal revenue, J.B.'s largest segment representing about half of total revenue, fell 1.3% to $1.15 billion. 

"Overall, we felt like there was some positives in an otherwise weak freight environment," Chief Financial Officer David Mee said on the company's earnings call.

"We saw our cost inflation becoming more normalized, and the bid season pricing is performing largely as we expected." 

The company hasn't issued guidance, but analysts expect full-year 2019 EPS to contract 2.7% in 2019 with revenue growing 6.2%.