diff options
Diffstat (limited to '.bazelci')
-rw-r--r-- | .bazelci/examples_naming.yml | 4 | ||||
-rw-r--r-- | .bazelci/examples_rich_structure.yml | 2 | ||||
-rw-r--r-- | .bazelci/examples_stamping.yml | 2 | ||||
-rw-r--r-- | .bazelci/integration.yml | 24 | ||||
-rw-r--r-- | .bazelci/tests.yml | 129 |
5 files changed, 99 insertions, 62 deletions
diff --git a/.bazelci/examples_naming.yml b/.bazelci/examples_naming.yml index e6dac9d..0f55f60 100644 --- a/.bazelci/examples_naming.yml +++ b/.bazelci/examples_naming.yml @@ -5,7 +5,7 @@ common: &common tasks: centos7: - platform: centos7 + platform: centos7_java11_devtoolset10 <<: *common ubuntu1804: platform: ubuntu1804 @@ -20,5 +20,5 @@ tasks: name: bzlmod platform: ubuntu1804 build_flags: - - "--experimental_enable_bzlmod" + - "--enable_bzlmod" <<: *common diff --git a/.bazelci/examples_rich_structure.yml b/.bazelci/examples_rich_structure.yml index adbfce1..e6f2d17 100644 --- a/.bazelci/examples_rich_structure.yml +++ b/.bazelci/examples_rich_structure.yml @@ -5,7 +5,7 @@ common: &common tasks: centos7: - platform: centos7 + platform: centos7_java11_devtoolset10 <<: *common ubuntu1804: platform: ubuntu1804 diff --git a/.bazelci/examples_stamping.yml b/.bazelci/examples_stamping.yml index 59e1d9c..0eebfaa 100644 --- a/.bazelci/examples_stamping.yml +++ b/.bazelci/examples_stamping.yml @@ -5,7 +5,7 @@ common: &common tasks: centos7: - platform: centos7 + platform: centos7_java11_devtoolset10 <<: *common ubuntu1804: platform: ubuntu1804 diff --git a/.bazelci/integration.yml b/.bazelci/integration.yml index 07aebca..11b04d4 100644 --- a/.bazelci/integration.yml +++ b/.bazelci/integration.yml @@ -1,23 +1,17 @@ -lts: <s - bazel: latest - -rolling: &rolling - bazel: rolling - +# These test the packaging of the product itself. +# They only have to run on linux with a recent bazel common: &common - platform: ubuntu1804 - working_directory: /workdir + working_directory: .. build_targets: - - "distro:*" + - "//doc_build:all" + - "//distro/..." tasks: - rolling_ubuntu: + integration: name: rolling_distro - <<: *rolling - <<: *common - lts_ubuntu: - name: lts_distro platform: ubuntu1804 - <<: *lts + bazel: rolling + build_flags: + - "--noenable_bzlmod" <<: *common diff --git a/.bazelci/tests.yml b/.bazelci/tests.yml index bc997e6..bd5ae61 100644 --- a/.bazelci/tests.yml +++ b/.bazelci/tests.yml @@ -1,19 +1,23 @@ +# These tests check the run-time behavior under various combinations +# +# - Tests: behavior only. release tools are in the integration tests +# - Platforms: ubuntu, centos, macos, windows +# - bzlmod enabled or not +# - bazel: LTS-1, LTS, rolling +# +# + common: &common working_directory: .. -# -# Bazel releases -# -lts: <s - bazel: latest +bzlmod: &bzlmod + build_flags: + - "--enable_bzlmod" -rolling: &rolling - bazel: rolling +nobzlmod: &nobzlmod build_flags: - - "--incompatible_use_platforms_repo_for_constraints" - # Do this after stardoc is updated - # - "--incompatible_disable_starlark_host_transitions" + - "--noenable_bzlmod" # # Groups of tests, by platform @@ -22,7 +26,6 @@ rolling: &rolling # rpmbuild(8) is not available or installed on most platforms default_tests: &default_tests test_targets: - - "//distro/..." - "//pkg/..." - "//tests/..." - "//toolchains/..." @@ -31,12 +34,15 @@ default_tests: &default_tests default_tests_with_rpm: &default_tests_with_rpm test_targets: - - "//distro/..." - "//pkg/..." - "//tests/..." - "//toolchains/..." win_tests: &win_tests + test_flags: + - "--test_tag_filters=-nowindows" + build_flags: + - "--build_tag_filters=-nowindows" test_targets: - "//pkg/..." - "//tests/..." @@ -55,19 +61,15 @@ win_tests: &win_tests - "-//pkg/legacy/tests/rpm/..." # -# Commmon features by platform +# Commmon features and tests by platform # ubuntu1804: &ubuntu platform: ubuntu1804 <<: *common <<: *default_tests - build_targets: - - "//distro:distro" - - "//distro:relnotes" - - "//doc_build:*" centos7: ¢os - platform: centos7 + platform: centos7_java11_devtoolset10 <<: *common <<: *default_tests_with_rpm @@ -85,32 +87,73 @@ windows: &windows # Finally, the cross product of bazel releases X platforms # tasks: - rolling_ubuntu: - name: rolling_ubuntu + ub_head_bzlmod: + name: ub_head_bzlmod + bazel: rolling <<: *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 + <<: *bzlmod + + ub_head_nobzlmod: + name: ub_head_nobzlmod + bazel: rolling + <<: *ubuntu + <<: *nobzlmod + + ub_lts_bzlmod: + name: ub_lts_bzlmod + bazel: latest + <<: *ubuntu + <<: *bzlmod + + ub_lts_nobzlmod: + name: ub_lts_nobzlmod + bazel: latest + <<: *ubuntu + <<: *nobzlmod + + ub_lts1_nobzlmod: + name: ub_lts1_nobzlmod + bazel: latest-1 + <<: *ubuntu + <<: *nobzlmod + + cent_lts: + name: cent_lts + bazel: latest <<: *centos - <<: *lts - lts_macos: - name: lts_macos + + mac_head_bzlmod: + name: mac_head_bzlmod + bazel: rolling <<: *macos - <<: *lts - lts_ubuntu: - name: lts_ubuntu - <<: *ubuntu - <<: *lts - lts_windows: - name: lts_windows + <<: *bzlmod + + mac_lts_bzlmod: + name: mac_lts_bzlmod + bazel: latest + <<: *macos + <<: *bzlmod + + mac_lts_nobzlmod: + name: mac_lts_nobzlmod + bazel: latest + <<: *macos + <<: *nobzlmod + + win_head_bzlmod: + name: win_head_bzlmod + bazel: rolling + <<: *windows + <<: *bzlmod + + win_lts_bzlmod: + name: win_lts_bzlmod + bazel: latest + <<: *windows + <<: *bzlmod + + win_lts_nobzlmod: + name: win_lts_nobzlmod + bazel: latest <<: *windows - <<: *lts + <<: *nobzlmod |