ci: retire travis configuration
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 27 Dec 2020 16:32:04 +0000 (16:32 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 20 Jun 2021 19:38:09 +0000 (20:38 +0100)
Travis CI was kind enough to offer free builds to open source for many
years (thanks!). Unfortunately, the inevitable abuse means that
travis-ci.org is ending on the 31st December 2020
(https://docs.travis-ci.com/user/migrate/open-source-repository-migration#frequently-asked-questions).
Current travis-ci.org users who wish to continue with Travis have to
create an account on travis-ci.com and will be put on a trial plan (see
https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing ). This
becomes complicated for the fio project because although users are
gifted are 10,000 credits:
- If those credits are used for Linux builds you will be limited to 1000
  minutes worth of builds (each fio CI run does about 60 minutes of
  Linux builds)
- If those credits are used for macOS builds you will be limited to 200
  minutes worth of builds (each fio CI run does two macOS builds that
  take up about 25 minutes together)
- Even if you still have credit, the trial plan expires in a year
- An open source project can ask for more credit but it is a manual
  process that requires manually creating a support request
- The above means the initial credit would run out before the sixth CI
  run

Rather than going through a migration and the risk of using up all the
free credits let's retire Travis builds.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
.travis.yml [deleted file]
ci/travis-build.sh [deleted file]
ci/travis-install.sh [deleted file]

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index e35aff3..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-language: c
-dist: bionic
-os:
-  - linux
-compiler:
-  - clang
-  - gcc
-arch:
-  - amd64
-  - arm64
-env:
-  global:
-    - MAKEFLAGS="-j 2"
-matrix:
-  include:
-    - os: linux
-      compiler: gcc
-      arch: amd64
-      env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
-    # Default xcode image
-    - os: osx
-      compiler: clang # Workaround travis setting CC=["clang", "gcc"]
-      arch: amd64
-    # Latest xcode image (needs periodic updating)
-    - os: osx
-      compiler: clang
-      osx_image: xcode11.2
-      arch: amd64
-  exclude:
-    - os: osx
-      compiler: gcc
-
-install:
-  - ci/travis-install.sh
-
-script:
-  - ci/travis-build.sh
diff --git a/ci/travis-build.sh b/ci/travis-build.sh
deleted file mode 100755 (executable)
index 923d882..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-set -eu
-
-CI_TARGET_ARCH="${BUILD_ARCH:-$TRAVIS_CPU_ARCH}"
-EXTRA_CFLAGS="-Werror"
-export PYTHONUNBUFFERED=TRUE
-CONFIGURE_FLAGS=()
-
-case "$TRAVIS_OS_NAME" in
-    "linux")
-        CONFIGURE_FLAGS+=(--enable-libiscsi)
-        case "$CI_TARGET_ARCH" in
-            "x86")
-                EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32"
-                export LDFLAGS="-m32"
-                ;;
-            "amd64")
-                CONFIGURE_FLAGS+=(--enable-cuda)
-                ;;
-        esac
-    ;;
-esac
-CONFIGURE_FLAGS+=(--extra-cflags="${EXTRA_CFLAGS}")
-
-./configure "${CONFIGURE_FLAGS[@]}" &&
-    make &&
-    make test &&
-    if [[ "$CI_TARGET_ARCH" == "arm64" ]]; then
-        sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug -p 1010:"--skip 15 16 17 18 19 20"
-    else
-        sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug
-    fi
diff --git a/ci/travis-install.sh b/ci/travis-install.sh
deleted file mode 100755 (executable)
index 4c4c04c..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/bash
-set -eu
-
-CI_TARGET_ARCH="${BUILD_ARCH:-$TRAVIS_CPU_ARCH}"
-case "$TRAVIS_OS_NAME" in
-    "linux")
-       # Architecture-dependent packages.
-       pkgs=(
-           libaio-dev
-           libcunit1-dev
-           libfl-dev
-           libgoogle-perftools-dev
-           libibverbs-dev
-           libiscsi-dev
-           libnuma-dev
-           librbd-dev
-           librdmacm-dev
-           libz-dev
-       )
-       case "$CI_TARGET_ARCH" in
-           "x86")
-               pkgs=("${pkgs[@]/%/:i386}")
-               pkgs+=(
-                   gcc-multilib
-                   pkg-config:i386
-               )
-               ;;
-           "amd64")
-               pkgs+=(nvidia-cuda-dev)
-               ;;
-       esac
-       if [[ $CI_TARGET_ARCH != "x86" ]]; then
-               pkgs+=(glusterfs-common)
-       fi
-       # Architecture-independent packages and packages for which we don't
-       # care about the architecture.
-       pkgs+=(
-           bison
-           flex
-           python3
-           python3-scipy
-           python3-six
-       )
-       sudo apt-get -qq update
-       sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}"
-       # librpma is supported on the amd64 (x86_64) architecture for now
-       if [[ $CI_TARGET_ARCH == "amd64" ]]; then
-               # install libprotobuf-c-dev required by librpma_gpspm
-               sudo apt-get install --no-install-recommends -qq -y libprotobuf-c-dev
-               # PMDK libraries have to be installed, because
-               # libpmem is a dependency of the librpma fio engine
-               ci/travis-install-pmdk.sh
-               # install librpma from sources from GitHub
-               ci/travis-install-librpma.sh
-       fi
-       ;;
-    "osx")
-       brew update >/dev/null 2>&1
-       brew install cunit
-       pip3 install scipy six
-       ;;
-esac
-
-echo "Python3 path: $(type -p python3 2>&1)"
-echo "Python3 version: $(python3 -V 2>&1)"