blob: 1df01671b5b0ad5aeda1862ca674bf1004810b5a [file] [log] [blame]
Brian Silverman7d89e282021-11-17 17:36:54 -08001#!/bin/bash
2# Copyright 2018 The Bazel Authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16echo "This test is disabled because our supported versions of LLVM do not work with CentOS."
17exit 1
18
19set -euo pipefail
20
21images=(
22"centos:7"
23)
24
25git_root=$(git rev-parse --show-toplevel)
26readonly git_root
27
28for image in "${images[@]}"; do
29 docker pull "${image}"
30 docker run --rm --entrypoint=/bin/bash --volume="${git_root}:/src:ro" "${image}" -c """
31set -exuo pipefail
32
33# Install dependencies
34yum install -y -q gcc
35
36# Run tests
37cd /src
38tests/scripts/run_tests.sh
39"""
40done