aboutsummaryrefslogtreecommitdiff
path: root/.bazelci/presubmit.yml
blob: 8d7899d66e2cc7ceace39f7a7e010e41bcdcd393 (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
---
x_defaults:
  # YAML has a feature for "repeated nodes", BazelCI is fine with extra nodes
  # it doesn't know about; so that is used to avoid repeating common subparts.
  common: &common
    # We have to list every package because even with exclusion notation -//foo
    # Bazel will load the excluded package and it will be an error because at
    # release Bazel the cc_libraries do not have all the attributes.
    build_targets:
    - "//:all"
    - "//cc:all"
    - "//cc/private/rules_impl:all"
    - "//cc/private/toolchain:all"
    - "//cc/runfiles:all"
    - "//examples:all"
    - "//examples/my_c_archive:all"
    - "//examples/my_c_compile:all"
    - "//examples/write_cc_toolchain_cpu:all"
    - "//tools/migration:all"
    - "//tests/..."
    test_flags:
    - "--test_timeout=120"
    test_targets:
    - "//:all"
    - "//cc:all"
    - "//cc/private/rules_impl:all"
    - "//cc/private/toolchain:all"
    - "//examples:all"
    - "//examples/my_c_archive:all"
    - "//examples/my_c_compile:all"
    - "//examples/write_cc_toolchain_cpu:all"
    - "//tools/migration:all"
    - "//tests/..."

buildifier:
  version: latest
  warnings: "all"

tasks:
  ubuntu1804:
    <<: *common
  macos:
    <<: *common
  windows:
    <<: *common
  ubuntu_bzlmod:
    name: Bzlmod
    platform: ubuntu1804
    build_flags:
      - "--enable_bzlmod"
      - "--ignore_dev_dependency"
    build_targets:
      - "//cc/..."