summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2022-12-21 18:51:20 +0100
committerIlya Maximets <i.maximets@ovn.org>2022-12-21 20:23:42 +0100
commit9a86a3dd68f054d47e1a93b8dec03d51479554f4 (patch)
tree16bfd1616b229c9bc70d9e27b01b19ee3ba362a4 /.ci
parentd5469cb743c284461739cb99c686dfbe92ded70c (diff)
downloadopenvswitch-9a86a3dd68f054d47e1a93b8dec03d51479554f4.tar.gz
travis: Drop support.
Following a change in the terms of use, free Travis credits are really too low for a realistic usage by OVS contributors. As a consequence, testing OVS with Travis has been abandoned by most (if not all) contributors to the project. Drop the Travis configuration from our repository, clean references in the documentation and move GHA specifics to the association yml. Acked-by: Aaron Conole <aconole@redhat.com> Signed-off-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/linux-build.sh31
-rwxr-xr-x.ci/linux-prepare.sh22
-rwxr-xr-x.ci/osx-build.sh15
3 files changed, 5 insertions, 63 deletions
diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index 485109672..c06186ce1 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -7,21 +7,6 @@ CFLAGS_FOR_OVS="-g -O2"
SPARSE_FLAGS=""
EXTRA_OPTS="--enable-Werror"
-on_exit() {
- if [ $? = 0 ]; then
- exit
- fi
- FILES_TO_PRINT="config.log"
- FILES_TO_PRINT="$FILES_TO_PRINT */_build/sub/tests/testsuite.log"
-
- for pr_file in $FILES_TO_PRINT; do
- cat "$pr_file" 2>/dev/null
- done
-}
-# We capture the error logs as artifacts in Github Actions, no need to dump
-# them via a EXIT handler.
-[ -n "$GITHUB_WORKFLOW" ] || trap on_exit EXIT
-
function install_kernel()
{
if [[ "$1" =~ ^5.* ]]; then
@@ -98,19 +83,9 @@ function install_kernel()
function install_dpdk()
{
local DPDK_VER=$1
- local VERSION_FILE="dpdk-dir/travis-dpdk-cache-version"
+ local VERSION_FILE="dpdk-dir/cached-version"
local DPDK_OPTS=""
- local DPDK_LIB=""
-
- if [ -z "$TRAVIS_ARCH" ] ||
- [ "$TRAVIS_ARCH" == "amd64" ]; then
- DPDK_LIB=$(pwd)/dpdk-dir/build/lib/x86_64-linux-gnu
- elif [ "$TRAVIS_ARCH" == "aarch64" ]; then
- DPDK_LIB=$(pwd)/dpdk-dir/build/lib/aarch64-linux-gnu
- else
- echo "Target is unknown"
- exit 1
- fi
+ local DPDK_LIB=$(pwd)/dpdk-dir/build/lib/x86_64-linux-gnu
if [ "$DPDK_SHARED" ]; then
EXTRA_OPTS="$EXTRA_OPTS --with-dpdk=shared"
@@ -245,7 +220,7 @@ elif [ "$M32" ]; then
# Adding m32 flag directly to CC to avoid any posiible issues with API/ABI
# difference on 'configure' and 'make' stages.
export CC="$CC -m32"
-elif [ "$TRAVIS_ARCH" != "aarch64" ]; then
+else
OPTS="--enable-sparse"
if [ "$AFXDP" ]; then
# netdev-afxdp uses memset for 64M for umem initialization.
diff --git a/.ci/linux-prepare.sh b/.ci/linux-prepare.sh
index 11d75a6d5..f414a879c 100755
--- a/.ci/linux-prepare.sh
+++ b/.ci/linux-prepare.sh
@@ -10,14 +10,11 @@ fi
# Build and install sparse.
#
-# Explicitly disable sparse support for llvm because some travis
-# environments claim to have LLVM (llvm-config exists and works) but
-# linking against it fails.
# Disabling sqlite support because sindex build fails and we don't
# really need this utility being installed.
git clone git://git.kernel.org/pub/scm/devel/sparse/sparse.git
cd sparse
-make -j4 HAVE_LLVM= HAVE_SQLITE= install
+make -j4 HAVE_SQLITE= install
cd ..
# Installing wheel separately because it may be needed to build some
@@ -29,23 +26,8 @@ pip3 install --disable-pip-version-check --user \
flake8 'hacking>=3.0' netaddr pyparsing sphinx setuptools pyelftools
pip3 install --user 'meson==0.53.2'
-if [ "$M32" ]; then
- # Installing 32-bit libraries.
- pkgs="gcc-multilib"
- if [ -z "$GITHUB_WORKFLOW" ]; then
- # 32-bit and 64-bit libunwind can not be installed at the same time.
- # This will remove the 64-bit libunwind and install 32-bit version.
- # GitHub Actions doesn't have 32-bit versions of these libs.
- pkgs=$pkgs" libunwind-dev:i386 libunbound-dev:i386"
- fi
-
- sudo apt-get install -y $pkgs
-fi
-
# Install python test dependencies
pip3 install -r python/test_requirements.txt
-# IPv6 is supported by kernel but disabled in TravisCI images:
-# https://github.com/travis-ci/travis-ci/issues/8891
-# Enable it to avoid skipping of IPv6 related tests.
+# Make sure IPv6 is enabled to avoid skipping of IPv6 related tests.
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
diff --git a/.ci/osx-build.sh b/.ci/osx-build.sh
index f8facebeb..09df61826 100755
--- a/.ci/osx-build.sh
+++ b/.ci/osx-build.sh
@@ -5,21 +5,6 @@ set -o errexit
CFLAGS="-Werror $CFLAGS"
EXTRA_OPTS=""
-on_exit() {
- if [ $? = 0 ]; then
- exit
- fi
- FILES_TO_PRINT="config.log"
- FILES_TO_PRINT="$FILES_TO_PRINT */_build/sub/tests/testsuite.log"
-
- for pr_file in $FILES_TO_PRINT; do
- cat "$pr_file" 2>/dev/null
- done
-}
-# We capture the error logs as artifacts in Github Actions, no need to dump
-# them via a EXIT handler.
-[ -n "$GITHUB_WORKFLOW" ] || trap on_exit EXIT
-
function configure_ovs()
{
./boot.sh && ./configure $*