AG Barr has signed a three-year deal with The Scottish Football League, making its Irn-Bru brand the official sponsor.