Africa’s largest oil refinery is on the brink of producing significant volumes of gasoline, a landmark moment with the potential to transform the global market for the fuel.