aboutsummaryrefslogtreecommitdiff
path: root/.bazelci/presubmit.yml
blob: 661c84d2c2f1da989e74b67713f7f38ffaa47c65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
---
.reusable_config: &reusable_config
  build_targets:
    - "--"
    - "//..."
    - "@bazel_skylib_gazelle_plugin//..."
  test_targets:
    - "--"
    - "//..."
    - "@bazel_skylib_gazelle_plugin//..."

tasks:
  ubuntu1804_latest:
    <<: *reusable_config
    name: "Latest Bazel"
    platform: ubuntu1804
    bazel: latest
    build_flags:
    - "--incompatible_config_setting_private_default_visibility"
    - "--incompatible_disallow_empty_glob"
    test_flags:
    - "--test_env=PATH"

  ubuntu1604_latest:
    name: "Latest Bazel"
    platform: ubuntu1604
    bazel: latest
    build_flags:
    - "--incompatible_config_setting_private_default_visibility"
    - "--incompatible_disallow_empty_glob"
    build_targets:
    - "--"
    - "//..."
    - "@bazel_skylib_gazelle_plugin//..."
    # //distribution requires Python >= 3.6 for some rules_pkg scripts; Ubuntu 16.04 has Python 3.5
    - "-//distribution/..."
    test_flags:
    - "--test_env=PATH"
    test_targets:
    - "--"
    - "//..."
    - "@bazel_skylib_gazelle_plugin//..."
    # //distribution requires Python >= 3.6 for some rules_pkg scripts; Ubuntu 16.04 has Python 3.5
    - "-//distribution/..."

  macos_latest:
    <<: *reusable_config
    name: "Latest Bazel"
    platform: macos
    bazel: latest
    build_flags:
    - "--incompatible_config_setting_private_default_visibility"
    - "--incompatible_disallow_empty_glob"
    test_flags:
    - "--test_env=PATH"

  windows_latest:
    <<: *reusable_config
    name: "Latest Bazel"
    platform: windows
    bazel: latest
    build_flags:
    - "--incompatible_config_setting_private_default_visibility"
    - "--incompatible_disallow_empty_glob"
    test_flags:
    # TODO(laszlocsomor): remove "--test_env=LOCALAPPDATA" after
    # https://github.com/bazelbuild/bazel/issues/7761 is fixed
    - "--test_env=LOCALAPPDATA"
    - "--test_tag_filters=-no_windows"

  ubuntu1804_last_green:
    <<: *reusable_config
    name: "Last Green Bazel"
    platform: ubuntu1804
    bazel: last_green
    build_flags:
    - "--incompatible_config_setting_private_default_visibility"
    - "--incompatible_disallow_empty_glob"
    test_flags:
    - "--test_env=PATH"

  ubuntu1604_last_green:
    name: "Last Green Bazel"
    platform: ubuntu1604
    bazel: last_green
    build_flags:
    - "--incompatible_config_setting_private_default_visibility"
    - "--incompatible_disallow_empty_glob"
    build_targets:
    - "--"
    - "//..."
    - "@bazel_skylib_gazelle_plugin//..."
    # //distribution requires Python >= 3.6 for some rules_pkg scripts; Ubuntu 16.04 has Python 3.5
    - "-//distribution/..."
    test_flags:
    - "--test_env=PATH"
    test_targets:
    - "--"
    - "//..."
    - "@bazel_skylib_gazelle_plugin//..."
    # //distribution requires Python >= 3.6 for some rules_pkg scripts; Ubuntu 16.04 has Python 3.5
    - "-//distribution/..."

  macos_last_green:
    <<: *reusable_config
    name: "Last Green Bazel"
    platform: macos
    bazel: last_green
    build_flags:
    - "--incompatible_config_setting_private_default_visibility"
    - "--incompatible_disallow_empty_glob"
    test_flags:
    - "--test_env=PATH"

  windows_last_green:
    <<: *reusable_config
    name: "Last Green Bazel"
    platform: windows
    bazel: last_green
    build_flags:
    - "--incompatible_config_setting_private_default_visibility"
    - "--incompatible_disallow_empty_glob"
    test_flags:
    # TODO(laszlocsomor): remove "--test_env=LOCALAPPDATA" after
    # https://github.com/bazelbuild/bazel/issues/7761 is fixed
    - "--test_env=LOCALAPPDATA"
    - "--test_tag_filters=-no_windows"

  ubuntu1804_last_green_bzlmod:
    <<: *reusable_config
    name: "Last Green Bazel (with bzlmod)"
    platform: ubuntu1804
    bazel: last_green
    build_flags:
    - "--enable_bzlmod"
    - "--incompatible_config_setting_private_default_visibility"
    - "--incompatible_disallow_empty_glob"
    test_flags:
    - "--enable_bzlmod"
    - "--test_env=PATH"

buildifier: latest