From 3a323ec59ff2eb6d3384a1457cb732f9e0c680dc Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 14 Dec 2020 09:13:54 -0800 Subject: [PATCH] Remove Travis CI. It has become unreliable and will cease providing free access soon. --- .travis.yml | 15 --------------- util/ci/afterfailure | 13 ------------- util/ci/arch-docker | 9 --------- util/ci/arch-testscript | 9 --------- util/ci/commonbuild | 21 --------------------- util/ci/ubuntu-18.04-docker | 18 ------------------ util/ci/ubuntu-18.04-testscript | 6 ------ 7 files changed, 91 deletions(-) delete mode 100644 .travis.yml delete mode 100755 util/ci/afterfailure delete mode 100644 util/ci/arch-docker delete mode 100644 util/ci/arch-testscript delete mode 100644 util/ci/commonbuild delete mode 100644 util/ci/ubuntu-18.04-docker delete mode 100644 util/ci/ubuntu-18.04-testscript diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 64a4dfa793..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Test -language: c++ -compiler: gcc -env: - - BUILDENV=arch BUILDTYPE=cmake-ninja - - BUILDENV=ubuntu-18.04 BUILDTYPE=cmake-make -services: - - docker -install: - - docker --version - - echo BUILDENV="$BUILDENV" - - docker build -f util/ci/${BUILDENV}-docker -t ${BUILDENV}-gnucashbuild util/ci -script: - - echo BUILDTYPE="$BUILDTYPE" - - docker run -v "$(pwd)":/gnucash:rw --env="BUILDTYPE=$BUILDTYPE" --rm ${BUILDENV}-gnucashbuild diff --git a/util/ci/afterfailure b/util/ci/afterfailure deleted file mode 100755 index 3157547a5b..0000000000 --- a/util/ci/afterfailure +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -if [[ -d "/build/Testing" ]] ; then - echo - echo "##################################################" - echo "##### Rerunning failed tests in verbose mode #####" - echo "##################################################" - ctest -V --rerun-failed -else - echo "Not rerunning tests. ctest hasn't run yet." -fi -# This script should fail so that the entire script will fail. -exit 1 diff --git a/util/ci/arch-docker b/util/ci/arch-docker deleted file mode 100644 index b6e0703b38..0000000000 --- a/util/ci/arch-docker +++ /dev/null @@ -1,9 +0,0 @@ -from archlinux/base -run pacman -Syu --quiet --noconfirm gcc cmake make boost python2 pkg-config gettext guile git ninja gtest gmock sqlite3 webkit2gtk swig gwenhywfar aqbanking intltool libxslt postgresql-libs libmariadbclient libdbi libdbi-drivers > /dev/null -run echo en_US.UTF-8 UTF-8 >> /etc/locale.gen -run echo en_GB.UTF-8 UTF-8 >> /etc/locale.gen -run echo fr_FR.UTF-8 UTF-8 >> /etc/locale.gen -run locale-gen -copy arch-testscript commonbuild / -run chmod +x /arch-testscript /commonbuild -entrypoint /arch-testscript diff --git a/util/ci/arch-testscript b/util/ci/arch-testscript deleted file mode 100644 index b9c82c373b..0000000000 --- a/util/ci/arch-testscript +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -le - -#-l above (login shell) so that /etc/profile runs so that perl is -# on the path. - -#-e so that if any command has an exit code != 0, this script will -# exit immediately. - -../commonbuild diff --git a/util/ci/commonbuild b/util/ci/commonbuild deleted file mode 100644 index cf27b1286a..0000000000 --- a/util/ci/commonbuild +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -e - -mkdir -p "$HOME"/.local/share - -mkdir build -cd build -export TZ="America/Los_Angeles" -export CTEST_OUTPUT_ON_FAILURE=On - -if [[ "$BUILDTYPE" == "cmake-make" ]]; then - cmake ../gnucash $PLATFORM_CMAKE_OPTS - make -j 4 - make check -elif [[ "$BUILDTYPE" == "cmake-ninja" ]]; then - cmake ../gnucash -DWITH_PYTHON=ON -DCMAKE_BUILD_TYPE=debug -G Ninja $PLATFORM_CMAKE_OPTS - ninja - ninja check -else - echo "Unknown buildtype: \"$BUILDTYPE\". Not building." -fi - diff --git a/util/ci/ubuntu-18.04-docker b/util/ci/ubuntu-18.04-docker deleted file mode 100644 index 4e6bf8735c..0000000000 --- a/util/ci/ubuntu-18.04-docker +++ /dev/null @@ -1,18 +0,0 @@ -from ubuntu:18.04 -# Travis' ubuntu docker images don't have any package sources enabled by default -# So start by enabling what we need -run sed -i"" "s/^# deb-src/deb-src/" /etc/apt/sources.list -run apt-get update -y -# Note all apt-get commands will be run with DEBIAN_FRONTEND=noninteractive -# to silence a bunch of warnings -# See https://stackoverflow.com/questions/22466255/is-it-possible-to-answer-dialog-questions-when-installing-under-docker for details -# And install apt-utils to silence another set of warnings -# See https://github.com/phusion/baseimage-docker/issues/319 for a similar discussion -run DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils -run DEBIAN_FRONTEND=noninteractive apt-get upgrade -y -run DEBIAN_FRONTEND=noninteractive apt-get build-dep -y gnucash -run DEBIAN_FRONTEND=noninteractive apt-get install -y git bash-completion cmake make swig xsltproc libdbd-sqlite3 texinfo ninja-build libboost-all-dev libgtk-3-dev libgwengui-gtk3-dev libwebkit2gtk-4.0-dev tzdata googletest -run DEBIAN_FRONTEND=noninteractive apt-get --reinstall install -y language-pack-en language-pack-fr -copy ubuntu-18.04-testscript afterfailure commonbuild / -run chmod +x /ubuntu-18.04-testscript /afterfailure /commonbuild -entrypoint /ubuntu-18.04-testscript diff --git a/util/ci/ubuntu-18.04-testscript b/util/ci/ubuntu-18.04-testscript deleted file mode 100644 index 039784a1b1..0000000000 --- a/util/ci/ubuntu-18.04-testscript +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -e - -# -e above so that if any command has an exit code != 0, this script will -# exit immediately. - -../commonbuild