setup environment and build file to build multiple repositories