Shares rise after the oil major beats Wall Street’s earnings target.