aboutsummaryrefslogtreecommitdiff
path: root/.bazelci/tests.yml
blob: 19297a1144cb4799af3587b705af1f99d565b9b0 (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

common: &common
  working_directory: ..

#
# Bazel releases
#
lts: &lts
  bazel: latest

rolling: &rolling
  bazel: rolling

#
# Groups of tests, by platform
#

# rpmbuild(8) is not available or installed on most platforms
default_tests: &default_tests
  test_targets:
    - "//distro/..."
    - "//pkg/..."
    - "//tests/..."
    - "//toolchains/..."
    - "-//tests/rpm/..."
    - "-//pkg/legacy/tests/rpm/..."

default_tests_with_rpm: &default_tests_with_rpm
  test_targets:
    - "//distro/..."
    - "//pkg/..."
    - "//tests/..."
    - "//toolchains/..."

win_tests: &win_tests
  test_targets:
    - "//pkg/..."
    - "//tests/..."
    - "//toolchains/..."
    - "-//tests:package_naming_aggregate_test"
    - "-//tests:path_test"
    # Bazel might be broken w.r.t. Unicode processing for windows. Multiple issues:
    # https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+is%3Aopen+%2Bunicode+%2Bwindows+
    - "-//tests/mappings:utf8_manifest_test"
    - "-//tests/mappings/filter_directory/..."
    - "-//tests/zip:unicode_test"
    # See #387
    - "-//tests/install/..."
    # rpmbuild(8) is not supported on Windows
    - "-//tests/rpm/..."
    - "-//pkg/legacy/tests/rpm/..."

#
# Commmon features by platform
# 
ubuntu1804: &ubuntu
  platform: ubuntu1804
  <<: *common
  <<: *default_tests
  build_targets:
    - "//distro:distro"
    - "//distro:relnotes"
    - "//doc_build:*"

centos7: &centos
  platform: centos7
  <<: *common
  <<: *default_tests_with_rpm

macos: &macos
  platform: macos
  <<: *common
  <<: *default_tests

windows: &windows
  platform: windows
  <<: *common
  <<: *win_tests

#
# Finally, the cross product of bazel releases X platforms
#
tasks:
  rolling_ubuntu:
    name: rolling_ubuntu
    <<: *ubuntu
    <<: *rolling
  rolling_macos:
    name: rolling_macos
    <<: *macos
    # It seems there is no rolling Bazel for macos.
    bazel: last_green
  rolling_windows:
    name: rolling_windows
    <<: *windows
    <<: *rolling
  lts_centos:
    name: lts_centos
    <<: *centos
    <<: *lts
  lts_macos:
    name: lts_macos
    <<: *macos
    <<: *lts
  lts_ubuntu:
    name: lts_ubuntu
    <<: *ubuntu
    <<: *lts
  lts_windows:
    name: lts_windows
    <<: *windows
    <<: *lts