"Fossies" - the Fresh Open Source Software Archive

Member "motion-Release-4.3.0/.travis.yml" (14 Jan 2020, 5823 Bytes) of package /linux/misc/motion-Release-4.3.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 sudo: required
    2 
    3 matrix:
    4   include:
    5   - os: osx
    6     language: c
    7     compiler: gcc
    8   - os: linux
    9     env:  DOCKER_IMAGE=ubuntu:16.04
   10     services:  docker
   11     language: c
   12     compiler: gcc
   13   - os: linux
   14     env:  DOCKER_IMAGE=ubuntu:18.04
   15     services:  docker
   16     language: c
   17     compiler: gcc
   18   - os: linux
   19     env:  DOCKER_IMAGE=ubuntu:19.04
   20     services:  docker
   21     language: c
   22     compiler: gcc
   23   - os: linux
   24     env:  DOCKER_IMAGE=debian:jessie
   25     services:  docker
   26     language: c
   27     compiler: gcc
   28   - os: linux
   29     env:  DOCKER_IMAGE=debian:stretch
   30     services:  docker
   31     language: c
   32     compiler: gcc
   33   - os: linux
   34     env:  DOCKER_IMAGE=debian:buster
   35     services:  docker
   36     language: c
   37     compiler: gcc
   38   - os: linux
   39     env:  DOCKER_IMAGE=alpine:latest
   40     services:  docker
   41     language: c
   42     compiler: gcc
   43 
   44 before_install:
   45   - if [ "$DOCKER_IMAGE" = "alpine:latest" ]; then
   46       echo $DOCKER_IMAGE;
   47       docker pull $DOCKER_IMAGE;
   48       docker run -d -v $(pwd):/motion -w /motion $DOCKER_IMAGE /bin/sh -c 'while true; do sleep 1; done';
   49     elif [ "x$DOCKER_IMAGE" != "x" ]; then
   50       echo $DOCKER_IMAGE;
   51       docker pull $DOCKER_IMAGE;
   52       docker run -d -v $(pwd):/motion -w /motion $DOCKER_IMAGE /bin/bash -c 'while true; do sleep 1; done';
   53     fi;
   54 #  MariaDB has broken mysql.h and we do not test it for buster.
   55 before_script:
   56   - if [ $TRAVIS_OS_NAME = osx ]; then
   57       brew upgrade ffmpeg pkg-config jpeg libmicrohttpd;
   58       brew install ffmpeg pkg-config libjpeg libmicrohttpd;
   59       export PATH="/usr/local/opt/gettext/bin:/usr/local/bin:$PATH";
   60       autoreconf -fiv;
   61     elif [ "$BUILD_IMAGE" = "14.04" ]; then
   62       autoreconf -fiv;
   63     elif [ "$DOCKER_IMAGE" = "alpine:latest" ]; then
   64       docker exec $(docker ps -aq) /bin/sh -c 'apk update';
   65       docker exec $(docker ps -aq) /bin/sh -c 'apk add alpine-sdk autoconf automake pkgconf libtool';
   66       docker exec $(docker ps -aq) /bin/sh -c 'apk add libjpeg-turbo-dev libzip-dev ffmpeg-dev';
   67       docker exec $(docker ps -aq) /bin/sh -c 'apk add libmicrohttpd-dev gettext-dev';
   68       docker exec $(docker ps -aq) /bin/sh -c 'autoreconf -fiv';
   69     elif [ "$DOCKER_IMAGE" = "debian:buster" ]; then
   70       docker exec $(docker ps -aq) /bin/bash -c 'apt-get -qq update';
   71       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y build-essential libjpeg62-turbo-dev libzip-dev autoconf automake autopoint pkgconf libtool git';
   72       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev';
   73       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libsqlite3-dev libpq-dev libmariadbclient-dev libwebp-dev libmicrohttpd-dev gettext';
   74       docker exec $(docker ps -aq) /bin/bash -c 'autoreconf -fiv';
   75     elif [ "$DOCKER_IMAGE" = "debian:stretch" ]; then
   76       docker exec $(docker ps -aq) /bin/bash -c 'apt-get -qq update';
   77       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y build-essential libjpeg62-turbo-dev libzip-dev autoconf automake autopoint pkgconf libtool git';
   78       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev';
   79       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libsqlite3-dev libpq-dev libmariadbclient-dev libwebp-dev libmicrohttpd-dev gettext';
   80       docker exec $(docker ps -aq) /bin/bash -c 'autoreconf -fiv';
   81     elif [ "$DOCKER_IMAGE" = "debian:jessie" ]; then
   82       docker exec $(docker ps -aq) /bin/bash -c 'apt-get -qq update';
   83       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y build-essential libjpeg62-turbo-dev libzip-dev autoconf automake autopoint pkgconf libtool git';
   84       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev';
   85       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libsqlite3-dev libpq-dev libmysqlclient-dev libwebp-dev libmicrohttpd-dev gettext';
   86       docker exec $(docker ps -aq) /bin/bash -c 'autoreconf -fiv';
   87     elif [ "$DOCKER_IMAGE" = "ubuntu:16.04" ]; then
   88       docker exec $(docker ps -aq) /bin/bash -c 'apt-get -qq update';
   89       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y build-essential libjpeg8-dev libzip-dev autoconf automake autopoint pkgconf libtool git';
   90       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev';
   91       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libsqlite3-dev libpq-dev libmysqlclient-dev libwebp-dev libmicrohttpd-dev gettext';
   92       docker exec $(docker ps -aq) /bin/bash -c 'autoreconf -fiv';
   93     elif [ "x$DOCKER_IMAGE" != "x" ]; then
   94       docker exec $(docker ps -aq) /bin/bash -c 'apt-get -qq update';
   95       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y build-essential libjpeg8-dev libzip-dev autoconf automake autopoint pkgconf libtool git';
   96       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev';
   97       docker exec $(docker ps -aq) /bin/bash -c 'apt-get install -y libsqlite3-dev libpq-dev libmariadbclient-dev libwebp-dev libmicrohttpd-dev gettext';
   98       docker exec $(docker ps -aq) /bin/bash -c 'autoreconf -fiv';
   99     fi;
  100 
  101 script:
  102   - if [ $TRAVIS_OS_NAME = osx ]; then
  103       ./configure --with-developer-flags && make;
  104     elif [ "$BUILD_IMAGE" = "14.04" ]; then
  105       ./configure && make check;
  106     elif [ "$DOCKER_IMAGE" = "alpine:latest" ]; then
  107       docker exec $(docker ps -aq) /bin/sh -c './configure && make check';
  108     elif [ "x$DOCKER_IMAGE" != "x" ]; then
  109       docker exec $(docker ps -aq) /bin/bash -c './configure && make check';
  110     fi;