dev.star 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env lucicfg
  2. # Copyright 2020 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. # See https://chromium.googlesource.com/infra/luci/luci-go/+/HEAD/lucicfg/doc/README.md
  6. # for information on starlark/lucicfg
  7. load("//lib/branches.star", "branches")
  8. lucicfg.check_version(
  9. min = "1.32.1",
  10. message = "Update depot_tools",
  11. )
  12. # Use LUCI Scheduler BBv2 names and add Scheduler realms configs.
  13. lucicfg.enable_experiment("crbug.com/1182002")
  14. # Tell lucicfg what files it is allowed to touch
  15. lucicfg.config(
  16. config_dir = "generated",
  17. tracked_files = [
  18. "luci/chops-weetbix-dev.cfg",
  19. "luci/cr-buildbucket-dev.cfg",
  20. "luci/luci-logdog-dev.cfg",
  21. "luci/luci-milo-dev.cfg",
  22. "luci/luci-scheduler-dev.cfg",
  23. "luci/realms-dev.cfg",
  24. ],
  25. fail_on_warnings = True,
  26. )
  27. # Just copy chops-weetbix-dev.cfg to generated outputs.
  28. lucicfg.emit(
  29. dest = "luci/chops-weetbix-dev.cfg",
  30. data = io.read_file("chops-weetbix-dev.cfg"),
  31. )
  32. branches.exec("//dev/dev.star")