ci: Remove Travis

The GitHub Actions pipeline replaces Travis in any way it matters.
macos/v1.5.9
Emmanuele Bassi 4 years ago
parent 14ab6c6bb8
commit 599847dfd6
  1. 55
      .travis.yml
  2. 29
      .travis/Dockerfile
  3. 32
      .travis/epoxy-ci-linux.sh
  4. 27
      .travis/epoxy-ci-osx.sh
  5. 12
      .travis/run-docker.sh

@ -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

@ -1,29 +0,0 @@
FROM debian:stretch-slim
MAINTAINER Emmanuele Bassi <ebassi@gmail.com>
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

@ -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}

@ -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 ..

@ -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
Loading…
Cancel
Save