From 599847dfd6dab1c68d0dadc9729fc64126aaad1a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 23 Dec 2020 13:17:06 +0000 Subject: [PATCH] ci: Remove Travis The GitHub Actions pipeline replaces Travis in any way it matters. --- .travis.yml | 55 --------------------------------------- .travis/Dockerfile | 29 --------------------- .travis/epoxy-ci-linux.sh | 32 ----------------------- .travis/epoxy-ci-osx.sh | 27 ------------------- .travis/run-docker.sh | 12 --------- 5 files changed, 155 deletions(-) delete mode 100644 .travis.yml delete mode 100644 .travis/Dockerfile delete mode 100755 .travis/epoxy-ci-linux.sh delete mode 100755 .travis/epoxy-ci-osx.sh delete mode 100755 .travis/run-docker.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0fe6610..0000000 --- a/.travis.yml +++ /dev/null @@ -1,55 +0,0 @@ -sudo: false - -branches: - except: - - debian - - khronos-registry - -os: - - linux - - osx - -compiler: - - gcc - - clang - -language: - - c - -services: - - docker - -matrix: - exclude: - - os: osx - compiler: gcc - -before_install: - - | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - brew update - brew unlink python@2 - brew install python@3 meson - # Use a Ninja with QuLogic's patch: https://github.com/ninja-build/ninja/issues/1219 - mkdir -p $HOME/tools; curl -L http://nirbheek.in/files/binaries/ninja/macos/ninja -o $HOME/tools/ninja; chmod +x $HOME/tools/ninja - fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull ebassi/epoxyci ; fi - -before_script: - - | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - echo FROM ebassi/epoxyci > Dockerfile - echo ADD . /root >> Dockerfile - echo WORKDIR /root >> Dockerfile - docker build -t withgit . - fi - -env: - - BUILD_OPTS="" - - BUILD_OPTS="-Dglx=no" - - BUILD_OPTS="-Degl=no" - - BUILD_OPTS="-Dx11=false" - -script: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run withgit /bin/sh -c "CC=$CC .travis/epoxy-ci-linux.sh $BUILD_OPTS" ; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then /bin/sh -c "CC=$CC .travis/epoxy-ci-osx.sh $BUILD_OPTS" ; fi diff --git a/.travis/Dockerfile b/.travis/Dockerfile deleted file mode 100644 index bd9b40a..0000000 --- a/.travis/Dockerfile +++ /dev/null @@ -1,29 +0,0 @@ -FROM debian:stretch-slim -MAINTAINER Emmanuele Bassi - -RUN apt-get update -qq && \ - apt-get install --no-install-recommends -qq -y \ - ca-certificates \ - clang \ - gcc \ - libgl1-mesa-dev \ - libegl1-mesa-dev \ - libgles1-mesa-dev \ - libgles2-mesa-dev \ - libgl1-mesa-dri \ - locales \ - ninja-build \ - pkg-config \ - python3 \ - python3-pip \ - python3-setuptools \ - python3-wheel \ - xvfb && \ - rm -rf /usr/share/doc/* /usr/share/man/* - -RUN locale-gen C.UTF-8 && /usr/sbin/update-locale LANG=C.UTF-8 -ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8 - -RUN pip3 install meson - -WORKDIR /root diff --git a/.travis/epoxy-ci-linux.sh b/.travis/epoxy-ci-linux.sh deleted file mode 100755 index e95584f..0000000 --- a/.travis/epoxy-ci-linux.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -dump_log_and_quit() { - local exitcode=$1 - - cat meson-logs/testlog.txt - - exit $exitcode -} - -# Start Xvfb -XVFB_WHD=${XVFB_WHD:-1280x720x16} - -Xvfb :99 -ac -screen 0 $XVFB_WHD -nolisten tcp & -xvfb=$! - -export DISPLAY=:99 - -srcdir=$( pwd ) -builddir=$( mktemp -d build_XXXXXX ) - -meson --prefix /usr "$@" $builddir $srcdir || exit $? - -cd $builddir - -ninja || exit $? -meson test || dump_log_and_quit $? - -cd .. - -# Stop Xvfb -kill -9 ${xvfb} diff --git a/.travis/epoxy-ci-osx.sh b/.travis/epoxy-ci-osx.sh deleted file mode 100755 index 1a062a1..0000000 --- a/.travis/epoxy-ci-osx.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -dump_log_and_quit() { - local exitcode=$1 - - cat meson-logs/testlog.txt - - exit $exitcode -} - -export SDKROOT=$( xcodebuild -version -sdk macosx Path ) -export CPPFLAGS=-I/usr/local/include -export LDFLAGS=-L/usr/local/lib -export OBJC=$CC -export PATH=$HOME/tools:$PATH - -srcdir=$( pwd ) -builddir=$( mktemp -d build_XXXXXX ) - -meson ${BUILDOPTS} $builddir $srcdir || exit $? - -cd $builddir - -ninja || exit $? -meson test || dump_log_and_quit $? - -cd .. diff --git a/.travis/run-docker.sh b/.travis/run-docker.sh deleted file mode 100755 index 4b3ecc7..0000000 --- a/.travis/run-docker.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -set -xe - -srcdir="$(pwd)/.." - -sudo docker build \ - --tag "epoxyci" \ - --file "Dockerfile" . -sudo docker run --rm \ - --volume "${srcdir}:/root/epoxy" \ - --tty --interactive "epoxyci" bash