#######################################
# PHPDocker.io PHP 7.4 / Swoole image #
#######################################

FROM phpdockerio/php74-cli

ENV SWOOLE_VERSION=v4.4.13

# Install FPM
RUN apt-get update \
    && apt-get -y --no-install-recommends install \
        build-essential \
        git \
        php7.4-dev \
    && cd /tmp \
    && git clone https://github.com/swoole/swoole-src.git \
    && cd swoole-src \
    && git checkout ${SWOOLE_VERSION}\
    && phpize \
    && ./configure --enable-openssl --enable-http2 --enable-sockets --enable-mysqlnd \
    && make \
    && make install-modules \
    && echo "extension=swoole.so" >> /etc/php/7.4/cli/php.ini \
    && apt autoremove --purge -y git php7.4-dev build-essential \
    && cd / \
    && rm -rf /tmp/swole-src \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

Update swoole: 4.4.13 --> 4.5.1

#######################################
# PHPDocker.io PHP 7.4 / Swoole image #
#######################################

FROM phpdockerio/php74-cli

ENV SWOOLE_VERSION=v4.5.1

# Install FPM
RUN apt-get update \
    && apt-get -y --no-install-recommends install \
        build-essential \
        git \
        php7.4-dev \
    && cd /tmp \
    && git clone https://github.com/swoole/swoole-src.git \
    && cd swoole-src \
    && git checkout ${SWOOLE_VERSION}\
    && phpize \
    && ./configure --enable-openssl --enable-http2 --enable-sockets --enable-mysqlnd \
    && make \
    && make install-modules \
    && echo "extension=swoole.so" >> /etc/php/7.4/cli/php.ini \
    && apt autoremove --purge -y git php7.4-dev build-essential \
    && cd / \
    && rm -rf /tmp/swole-src \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*


FROM centos:6
MAINTAINER Jake Low <jake.low@isilon.com>

USER root

# install dev tools and java
RUN yum install -y \
    java-1.8.0-openjdk* \
    krb5-workstation \
    tar \
    wget \
    which

# download and extract hadoop
RUN wget -O - \
    http://archive.apache.org/dist/hadoop/common/hadoop-2.7.0/hadoop-2.7.0.tar.gz \
    | tar -xzpo --strip-components 1 -C /

# create hadoop groups and users
RUN groupadd hadoop
RUN groupadd supergroup
RUN useradd -g supergroup -G hadoop hdfs
RUN useradd -g supergroup -G hadoop yarn

# set java home, path, and hadoop env variables
ENV JAVA_HOME /usr/lib/jvm/jre-1.8.0
ENV PATH $JAVA_HOME/bin:$PATH
ENV HADOOP_CONF_DIR /etc/hadoop
ENV HADOOP_LIBEXEC_DIR /libexec

RUN su hdfs -c "hdfs namenode -format"

Remove hadoop:2.7.0 dependency on which

FROM centos:6
MAINTAINER Jake Low <jake.low@isilon.com>

USER root

# install dev tools and java
RUN yum install -y \
    java-1.8.0-openjdk* \
    krb5-workstation \
    tar \
    wget

# download and extract hadoop
RUN wget -O - \
    http://archive.apache.org/dist/hadoop/common/hadoop-2.7.0/hadoop-2.7.0.tar.gz \
    | tar -xzpo --strip-components 1 -C /

# create hadoop groups and users
RUN groupadd hadoop
RUN groupadd supergroup
RUN useradd -g supergroup -G hadoop hdfs
RUN useradd -g supergroup -G hadoop yarn

# set java home, path, and hadoop env variables
ENV JAVA_HOME /usr/lib/jvm/jre-1.8.0
ENV PATH $JAVA_HOME/bin:$PATH
ENV HADOOP_CONF_DIR /etc/hadoop
ENV HADOOP_LIBEXEC_DIR /libexec

RUN su hdfs -c "hdfs namenode -format"


set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 1000000)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 300)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 50)

set(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  ".*SuperBuild.GEOS.*"
  ".*SuperBuild.JPEG.*warning"
  ".*SuperBuild.TIFF.*warning.*"
  ".*SuperBuild.ZLIB.src.ZLIB.*"
  ".*SuperBuild.FFTW.FFTWD.src.*"
  ".*SuperBuild.FFTW.FFTWF.src.*"
  ".*SuperBuild.GEOTIFF.src.GEOTIFF*"
  ".*SuperBuild.OPENCV.src.OPENCV.*"
  ".*SuperBuild.GDAL.src.GDAL.*"
  ".*SuperBuild.ITK.src.ITK.*"
  ".*SuperBuild.OPENJPEG.tmp.*"
  ".*SuperBuild.OSSIM.src.OSSIM.*"
  ".*SuperBuild.PACKAGE-TOOLS.*"
  ".*SuperBuild.CURL.src.CURL.*"
  ".*SuperBuild.PNG.src.PNG.*"
  ".*SuperBuild.JPEG.src.JPEG.*"
  ".*SuperBuild.LIBKML.src.LIBKML.*"
  )

# We disable all compiler warnings on superbuild. They are too numerous and pretty much useless
# when they show up on the dashboard. If you want to track them do, just run the build
# manually.
set (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 0)

Revert "CDASH: try to sssh warnings from thirdparty inside dashboard"

set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 1000000)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 300)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 50)

set(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  ".*SuperBuild.*LIBKML.*warning.*"
  ".*SuperBuild.GEOS.*"
  ".*SuperBuild.JPEG.*warning"
  ".*SuperBuild.TIFF.*warning.*"
  ".*SuperBuild.GEOTIFF.*warning.*"
  ".*SuperBuild.GDAL.config.status.*WARNING.*"
  ".*SuperBuild.OSSIM.*warning.*"
  )

# We disable all compiler warnings on superbuild. They are too numerous and pretty much useless
# when they show up on the dashboard. If you want to track them do, just run the build
# manually.
set (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 0)


FROM heroku/cedar:14

WORKDIR /app
ENV WORKSPACE_DIR=/app/support/build

RUN apt-get update && apt-get install -y python-pip

RUN pip install 'bob-builder>=0.0.10' 's3cmd>=1.6.0'

ADD . /app

Install requirements based on the requirements.txt in Docker

FROM heroku/cedar:14

WORKDIR /app
ENV WORKSPACE_DIR=/app/support/build

RUN apt-get update && apt-get install -y python-pip

ADD requirements.txt /app/requirements.txt

RUN pip install -r /app/requirements.txt

ADD . /app


FROM debian
MAINTAINER Artem Polyakov <artemp@mellanox.com>

# Install some ps and Midnight Commander
RUN apt-get update && \
    apt-get install -y procps mc && \
    apt-get install -y gcc make && \
    apt-get install -y wget bzip2 && \
    apt-get install -y git

# Prepare tools for compilation
COPY ./compilation /root/
RUN cd /root/compile/scripts/ && ./download_tools.sh
RUN cd /root/compile/scripts/ && ./prepare.sh
RUN echo "BASE=/opt/compile_tools/" >> /root/.bashrc
RUN echo "PATH=\$BASE/bin:\$PATH" >> /root/.bashrc
RUN echo "LD_LIBRARY_PATH=\$BASE/lib:\$LD_LIBRARY_PATH" >> /root/.bashrc
RUN rm -Rf /root/compile

Add python package that is needed by SLURM at installation

FROM debian
MAINTAINER Artem Polyakov <artemp@mellanox.com>

# Install some ps and Midnight Commander
RUN apt-get update && \
    apt-get install -y procps mc && \
    apt-get install -y gcc make && \
    apt-get install -y wget bzip2 && \
    apt-get install -y git && \
    apt-get install -y python

# Prepare tools for compilation
COPY ./compilation /root/
RUN cd /root/compile/scripts/ && ./download_tools.sh
RUN cd /root/compile/scripts/ && ./prepare.sh
RUN echo "BASE=/opt/compile_tools/" >> /root/.bashrc
RUN echo "PATH=\$BASE/bin:\$PATH" >> /root/.bashrc
RUN echo "LD_LIBRARY_PATH=\$BASE/lib:\$LD_LIBRARY_PATH" >> /root/.bashrc
RUN rm -Rf /root/compile


PLIBDIR= /usr/share/perl

PLIB+= abbrev.pl assert.pl bigfloat.pl bigint.pl bigrat.pl cacheout.pl
PLIB+= chat2.pl complete.pl ctime.pl dumpvar.pl exceptions.pl fastcwd.pl
PLIB+= find.pl finddepth.pl flush.pl getcwd.pl getopts.pl importenv.pl
PLIB+= look.pl newgetopt.pl open2.pl perldb.pl pwd.pl shellwords.pl
PLIB+= stat.pl syslog.pl termcap.pl timelocal.pl validate.pl

install:
	mkdir -p ${PLIBDIR}
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PLIB} ${PLIBDIR}

clean:
cleandir:
obj:

.include <bsd.prog.mk>

Change libs to install in /usr/lib/perl

PLIBDIR= /usr/lib/perl

PLIB+= abbrev.pl assert.pl bigfloat.pl bigint.pl bigrat.pl cacheout.pl
PLIB+= chat2.pl complete.pl ctime.pl dumpvar.pl exceptions.pl fastcwd.pl
PLIB+= find.pl finddepth.pl flush.pl getcwd.pl getopts.pl importenv.pl
PLIB+= look.pl newgetopt.pl open2.pl perldb.pl pwd.pl shellwords.pl
PLIB+= stat.pl syslog.pl termcap.pl timelocal.pl validate.pl

install:
	mkdir -p ${PLIBDIR}
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PLIB} ${PLIBDIR}

clean:
cleandir:
obj:

.include <bsd.prog.mk>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="Symfony DomCrawler Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Fix the path to the boostrap files in the components

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="Tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="Symfony DomCrawler Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
>
    <testsuites>
        <testsuite name="Socket Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory>./Socket/</directory>
        </whitelist>
    </filter>
    <!--<logging>
        <log type="coverage-clover" target="./build/clover.xml"/>
    </logging>-->
</phpunit>

Update coverage path to new PSR4-4 layout

<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
>
    <testsuites>
        <testsuite name="Socket Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory>./src/</directory>
        </whitelist>
    </filter>
    <!--<logging>
        <log type="coverage-clover" target="./build/clover.xml"/>
    </logging>-->
</phpunit>


FROM java:7-jre
MAINTAINER P. Barrett Little <barrett@barrettlittle.com> (@pblittle)

# Download version 1.4.2 of logstash
RUN cd /tmp && \
    wget https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz && \
    tar -xzvf ./logstash-1.4.2.tar.gz && \
    mv ./logstash-1.4.2 /opt/logstash && \
    rm ./logstash-1.4.2.tar.gz

# Install contrib plugins
RUN /opt/logstash/bin/plugin install contrib

# Copy build files to container root
RUN mkdir /app
ADD . /app

# Set default data directory
ENV DATA_DIR /data

# Define mountable directory
VOLUME ${DATA_DIR}

# Define working directory
WORKDIR ${DATA_DIR}

# Kibana
EXPOSE 9292

# Start logstash
ENTRYPOINT ["/app/bin/boot"]

# Valid commands: `agent`, `web`, `configtest`
# Default (empty command) runs the ELK stack
CMD []

Revert "Dockerfile: configurable data volume and workdir"

FROM java:7-jre
MAINTAINER P. Barrett Little <barrett@barrettlittle.com> (@pblittle)

# Download version 1.4.2 of logstash
RUN cd /tmp && \
    wget https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz && \
    tar -xzvf ./logstash-1.4.2.tar.gz && \
    mv ./logstash-1.4.2 /opt/logstash && \
    rm ./logstash-1.4.2.tar.gz

# Install contrib plugins
RUN /opt/logstash/bin/plugin install contrib

# Copy build files to container root
RUN mkdir /app
ADD . /app

# Kibana
EXPOSE 9292

# Start logstash
ENTRYPOINT ["/app/bin/boot"]

# Valid commands: "agent", "web", "configtest"
# Default (empty command): "agent" & "web"
CMD []


FROM circleci/python:3.6
LABEL maintainer="Kitware, Inc. <kitware@kitware.com>"

# Don't use "sudo"
USER root

# Install Node.js 10
RUN curl --silent --location https://deb.nodesource.com/setup_10.x | bash - \
  && apt-get install --assume-yes nodejs \
  && npm install --global npm

# Install Girder system prereqs (including those for all plugins)
RUN apt-get update \
  && apt-get install --assume-yes \
    libldap2-dev \
    libsasl2-dev

# Install Girder development prereqs
RUN apt-get update \
  && apt-get install --assume-yes \
    cmake \
  # Note: universal-ctags is installed for use in the public_names CI job.
  && git clone "https://github.com/universal-ctags/ctags.git" "./ctags" \
  && cd ./ctags \
  && ./autogen.sh \
  && ./configure \
  && make \
  && make install \
  && cd .. \
  && rm -rf ./ctags

USER circleci

Use a Python 3 testing Docker image with NodeJS pre-installed

FROM circleci/python:3.6-node
LABEL maintainer="Kitware, Inc. <kitware@kitware.com>"

# Don't use "sudo"
USER root

# Install Girder system prereqs (including those for all plugins)
RUN apt-get update \
  && apt-get install --assume-yes \
    libldap2-dev \
    libsasl2-dev

# Install Girder development prereqs
RUN apt-get update \
  && apt-get install --assume-yes \
    cmake \
  # Note: universal-ctags is installed for use in the public_names CI job.
  && git clone "https://github.com/universal-ctags/ctags.git" "./ctags" \
  && cd ./ctags \
  && ./autogen.sh \
  && ./configure \
  && make \
  && make install \
  && cd .. \
  && rm -rf ./ctags

USER circleci


<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true" bootstrap="vendor/autoload.php" defaultTestSuite="Core">
    <testsuites>
        <testsuite name="Core">
            <directory>src/Core/Tests</directory>
            <directory>src/Html/Tests</directory>
            <directory>src/Twig/Tests</directory>
        </testsuite>
        <testsuite name="Drupal">
            <directory>./src/Drupal/Tests</directory>
        </testsuite>
    </testsuites>

    <php>
        <env name="DRUPAL_ROOT" value="vendor/drupal" />
    </php>

    <filter>
        <whitelist>
            <directory>./src/*/</directory>
            <exclude>
                <directory>./src/*/Tests</directory>
            </exclude>
        </whitelist>
    </filter>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
    </listeners>
</phpunit>

Make deprecations helper not fail for vendor introduced deprecations

<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true" bootstrap="vendor/autoload.php" defaultTestSuite="Core">
    <testsuites>
        <testsuite name="Core">
            <directory>src/Core/Tests</directory>
            <directory>src/Html/Tests</directory>
            <directory>src/Twig/Tests</directory>
        </testsuite>
        <testsuite name="Drupal">
            <directory>./src/Drupal/Tests</directory>
        </testsuite>
    </testsuites>

    <php>
        <env name="DRUPAL_ROOT" value="vendor/drupal" />
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors" />
    </php>

    <filter>
        <whitelist>
            <directory>./src/*/</directory>
            <exclude>
                <directory>./src/*/Tests</directory>
            </exclude>
        </whitelist>
    </filter>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
    </listeners>
</phpunit>


FROM ubuntu:16.04

# Setup the LLVM repository
RUN echo deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main > /etc/apt/sources.list.d/clang.list

# This forces dpkg not to call sync() after package extraction and speeds up install
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup

# No need for the apt cache in a container
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache

# Download the GBG key to use the LLVM repo
ADD https://apt.llvm.org/llvm-snapshot.gpg.key /tmp/llvm.key

# Add the key
RUN apt-key add /tmp/llvm.key

# Install clang and everything needed to build core
RUN apt-get update \
    && apt-get install -y clang-5.0 \
                       cmake \
                       libprocps4-dev \
                       libssl-dev \
                       ninja-build \
    && rm -rf /var/lib/apt/lists/*

# Make clang the default compiler
ENV CC /usr/bin/clang-5.0
ENV CXX /usr/bin/clang++-5.0

Use Clang 6 for sanitizer checks

FROM ubuntu:16.04

# Setup the LLVM repository
RUN echo deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main > /etc/apt/sources.list.d/clang.list

# This forces dpkg not to call sync() after package extraction and speeds up install
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup

# No need for the apt cache in a container
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache

# Download the GBG key to use the LLVM repo
ADD https://apt.llvm.org/llvm-snapshot.gpg.key /tmp/llvm.key

# Add the key
RUN apt-key add /tmp/llvm.key

# Install clang and everything needed to build core
RUN apt-get update \
    && apt-get install -y clang-6.0 \
                       cmake \
                       libprocps4-dev \
                       libssl-dev \
                       ninja-build \
    && rm -rf /var/lib/apt/lists/*

# Make clang the default compiler
ENV CC /usr/bin/clang-6.0
ENV CXX /usr/bin/clang++-6.0


<?xml version="1.0" encoding="utf-8" ?>
<phpunit bootstrap="./vendor/autoload.php">

    <testsuites>
        <testsuite name="SugarCli's test suite">
            <directory>./tests</directory>
        </testsuite>
    </testsuites>

</phpunit>

Add code coverage in phpunit.

<?xml version="1.0" encoding="utf-8" ?>
<phpunit bootstrap="./vendor/autoload.php">

    <testsuites>
        <testsuite name="SugarCli's test suite">
            <directory>./tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
    </logging>

</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

    <testsuites>
        <testsuite name="Symfony Debug Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Add debug extension to the test suite

<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

    <testsuites>
        <testsuite name="Symfony Debug Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
        <testsuite name="Symfony Debug Extension Test Suite">
            <directory suffix=".phpt">./Resources/ext/tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         bootstrap="test/bootstrap.php">

    <testsuites>
        <testsuite name="main">
            <directory suffix="Test.php">test/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>

    <php>
        <ini name="assert.exception" value="On"/>
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
    </php>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
    </listeners>

</phpunit>

Update the PHPUnit Configuration File

<?xml version="1.0" encoding="UTF-8"?>
<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
    backupGlobals="false"
    backupStaticAttributes="false"
    colors="true"
    convertErrorsToExceptions="true"
    convertNoticesToExceptions="true"
    convertWarningsToExceptions="true"
    processIsolation="false"
    stopOnFailure="false"
    bootstrap="test/bootstrap.php"
>

    <testsuites>
        <testsuite name="main">
            <directory suffix="Test.php">test/</directory>
        </testsuite>
    </testsuites>

    <coverage processUncoveredFiles="true">
        <include>
            <directory suffix=".php">src</directory>
        </include>
    </coverage>

    <php>
        <ini name="assert.exception" value="On"/>
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0"/>
    </php>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
    </listeners>

</phpunit>


FROM node:6.10.2-slim

RUN \
  wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
  echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
  apt-get update && \
  apt-get install -y google-chrome-stable xvfb openjdk-7-jdk ssh git gcc && \
  rm -rf /var/lib/apt/lists/*

RUN \
  echo "deb http://debian.fastweb.it/debian stretch main contrib" > /etc/apt/sources.list.d/stretch.list && \
  apt-get update && apt-get install brotli/stretch

# Fix for the issue with Selenium, as described here:
# https://github.com/SeleniumHQ/docker-selenium/issues/87
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null

ENTRYPOINT ["/bin/bash"]

Add bazel to the docker image

FROM node:6.10.2-slim

RUN \
  wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
  wget -q -O - https://bazel.build/bazel-release.pub.gpg | apt-key add -

RUN \
  echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
  echo "deb http://debian.fastweb.it/debian stretch main contrib" > /etc/apt/sources.list.d/stretch.list && \
  echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" > /etc/apt/sources.list.d/bazel.list

RUN apt-get update
RUN apt-get install -y \
    google-chrome-stable \
    xvfb \
    openjdk-8-jdk \
    ssh \
    git \
    gcc \
    bazel \
    brotli/stretch

RUN rm -rf /var/lib/apt/lists/*

# Fix for the issue with Selenium, as described here:
# https://github.com/SeleniumHQ/docker-selenium/issues/87
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null

ENTRYPOINT ["/bin/bash"]


[Desktop Entry]
Type=Link
Name=Configuration - Profiles
Icon=e-module-conf_profiles
Comment=<hilight>E17 Configuration Applet</hilight><br>Allows to manage configuration profiles.

Fix wording as suggested by Zachary Goldberg.

[Desktop Entry]
Type=Link
Name=Configuration - Profiles
Icon=e-module-conf_profiles
Comment=<hilight>E17 Configuration Applet</hilight><br>Allows management of configuration profiles.


<?xml version="1.0" encoding="UTF-8"?>

<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
    backupGlobals               = "false"
    backupStaticAttributes      = "false"
    colors                      = "true"
    convertErrorsToExceptions   = "true"
    convertNoticesToExceptions  = "true"
    convertWarningsToExceptions = "true"
    processIsolation            = "false"
    stopOnFailure               = "false"
    syntaxCheck                 = "false"
    bootstrap                   = "app/autoload.php" >

    <php>
        <server name="KERNEL_DIR" value="app/" />
    </php>

    <testsuites>
        <testsuite name="ArgonBook Test Suite">
            <directory>tests/</directory>
            <directory>src/*/*Bundle/Tests/</directory>
            <directory>src/*/Bundle/*Bundle/Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>src/</directory>
            <exclude>
                <directory>src/*/*Bundle/Resources/</directory>
                <directory>src/*/*Bundle/Tests/</directory>
                <directory>src/*/Bundle/*Bundle/Resources/</directory>
                <directory>src/*/Bundle/*Bundle/Tests/</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Remove unused from phpunit config

<?xml version="1.0" encoding="UTF-8"?>

<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
    backupGlobals               = "false"
    backupStaticAttributes      = "false"
    colors                      = "true"
    convertErrorsToExceptions   = "true"
    convertNoticesToExceptions  = "true"
    convertWarningsToExceptions = "true"
    processIsolation            = "false"
    stopOnFailure               = "false"
    syntaxCheck                 = "false"
    bootstrap                   = "app/autoload.php" >

    <php>
        <server name="KERNEL_DIR" value="app/" />
    </php>

    <testsuites>
        <testsuite name="ArgonBook Test Suite">
            <directory>tests/</directory>
            <directory>src/*/*Bundle/Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>src/</directory>
            <exclude>
                <directory>src/*/*Bundle/Resources/</directory>
                <directory>src/*/*Bundle/Tests/</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


ARG BASE_CONTAINER=rocker/tidyverse:3.6.3-ubuntu18.04
FROM $BASE_CONTAINER

RUN apt-get update && apt-get install -y -q \
    build-essential \
    libpcre3-dev \
    autoconf \
    automake \
    libtool \
    bison \
    git \
    libboost-dev \
    python3-dev \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*

RUN wget https://github.com/swig/swig/archive/rel-3.0.12.tar.gz \
  && tar -zxf rel-3.0.12.tar.gz \
  && rm -f rel-3.0.12.tar.gz \
  && cd swig-rel-3.0.12 \
  && ./autogen.sh \
  && ./configure \
  && make \
  && make install

RUN mkdir -p /infomap

COPY . /infomap/

WORKDIR /infomap

RUN make R

Update swig version in docker build

FROM rocker/rstudio:3

RUN apt-get update && apt-get install -y -q \
    build-essential \
    libpcre3-dev \
    autoconf \
    automake \
    libtool \
    bison \
    git \
    libboost-dev \
    python3-dev \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*

RUN wget https://github.com/swig/swig/archive/rel-4.0.1.tar.gz \
&& tar -zxf rel-4.0.1.tar.gz \
&& cd swig-rel-4.0.1 \
&& rm -f ../rel-4.0.1.tar.gz \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install

COPY . /home/rstudio/

WORKDIR /home/rstudio

RUN make R

WORKDIR /home/rstudio/build/R/Infomap

# ENTRYPOINT ["/home/rstudio/Infomap"]
# CMD ["--help"]


# MoleQueue CMake configuration file - http://www.openchemistry.org/

# If this file was found, then MoleQueue has been found
set(MoleQueue_FOUND 1)

set(MoleQueue_VERSION_MAJOR   "@MoleQueue_VERSION_MAJOR@")
set(MoleQueue_VERSION_MINOR   "@MoleQueue_VERSION_MINOR@")
set(MoleQueue_VERSION_PATCH   "@MoleQueue_VERSION_PATCH@")
set(MoleQueue_VERSION         "${MoleQueue_VERSION_MAJOR}.${MoleQueue_VERSION_MINOR}.${MoleQueue_VERSION_PATCH}")

set(MoleQueue_INSTALL_PREFIX  "@CMAKE_INSTALL_PREFIX@")
set(MoleQueue_INCLUDE_DIRS    "${MoleQueue_INSTALL_PREFIX}/@INSTALL_INCLUDE_DIR@")
set(MoleQueue_LIBRARY_DIR     "${MoleQueue_INSTALL_PREFIX}/@INSTALL_LIBRARY_DIR@@LIB_SUFFIX@")
set(MoleQueue_RUNTIME_DIR     "${MoleQueue_INSTALL_PREFIX}/@INSTALL_RUNTIME_DIR@")
set(MoleQueue_CMAKE_DIR       "${MoleQueue_LIBRARY_DIR}/cmake/molequeue")

if(NOT TARGET molequeueclient)
  include("${MoleQueue_CMAKE_DIR}/MoleQueueTargets.cmake")
endif()

Add the Qt5Json path to include paths, update lib name

# MoleQueue CMake configuration file - http://www.openchemistry.org/

# If this file was found, then MoleQueue has been found
set(MoleQueue_FOUND 1)

set(MoleQueue_VERSION_MAJOR   "@MoleQueue_VERSION_MAJOR@")
set(MoleQueue_VERSION_MINOR   "@MoleQueue_VERSION_MINOR@")
set(MoleQueue_VERSION_PATCH   "@MoleQueue_VERSION_PATCH@")
set(MoleQueue_VERSION         "${MoleQueue_VERSION_MAJOR}.${MoleQueue_VERSION_MINOR}.${MoleQueue_VERSION_PATCH}")

set(MoleQueue_INSTALL_PREFIX  "@CMAKE_INSTALL_PREFIX@")
set(MoleQueue_INCLUDE_DIRS    "${MoleQueue_INSTALL_PREFIX}/@INSTALL_INCLUDE_DIR@"
  "${MoleQueue_INSTALL_PREFIX}/@INSTALL_INCLUDE_DIR@/qt5json")
set(MoleQueue_LIBRARY_DIR     "${MoleQueue_INSTALL_PREFIX}/@INSTALL_LIBRARY_DIR@@LIB_SUFFIX@")
set(MoleQueue_RUNTIME_DIR     "${MoleQueue_INSTALL_PREFIX}/@INSTALL_RUNTIME_DIR@")
set(MoleQueue_CMAKE_DIR       "${MoleQueue_LIBRARY_DIR}/cmake/molequeue")

if(NOT TARGET MoleQueueClient)
  include("${MoleQueue_CMAKE_DIR}/MoleQueueTargets.cmake")
endif()


[Desktop Entry]
Version=1.0
Type=Application
_Name=Midori Private Browsing
_GenericName=Private Browsing
_Comment=Open a new private browsing window
Categories=GTK;Network;WebBrowser;
Exec=midori --private %U
Icon=midori
Terminal=false
StartupNotify=true
X-Osso-Type=application/x-executable
X-Osso-Service=midori

Make private launcher only show in search in Pantheon

[Desktop Entry]
Version=1.0
Type=Application
_Name=Midori Private Browsing
_GenericName=Private Browsing
_Comment=Open a new private browsing window
Categories=GTK;Network;WebBrowser;
Exec=midori --private %U
Icon=midori
Terminal=false
StartupNotify=true
NotShowIn=Pantheon
X-Osso-Type=application/x-executable
X-Osso-Service=midori


#!/bin/bash
###############################################################################
#                         ${socket.name} Apple OS X Preinstall                       #
###############################################################################
#  Description:                                                               #
#    1. Checks for minimum Java version                                       #
#    2. Kills any running instances                                           #
#                                                                             #
#  Usage:                                                                     #
#    $ ./preinstall                                                           #
###############################################################################

# Check minimum java version
function check_java() {
	curver=$("${apple.jvmfallback}/java" -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-2)
	minver="${javac.socket.target}"

	if [ -z "$curver" ]; then
		curver="0.0"
	fi

	if [ $(echo "$curver>=$minver" | bc -l) -eq 0 ]; then
		exit 1
	fi
}

# Use java_home command to check minimum Java version
${apple.jvmver} > /dev/null 2>&1
code=$?

# Fallback on Internet Plug-Ins version if needed
if [ $code -ne 0 ]; then
	check_java
	code=0
fi

# Kill any running versions
kill -9 $(ps -e |grep "${build.socket.name}.jar" |grep -v grep|awk '{print $1}') > /dev/null 2>&1
exit $code

Add Java version check warning to Apple installer

#!/bin/bash
###############################################################################
#                         ${socket.name} Apple OS X Preinstall                       #
###############################################################################
#  Description:                                                               #
#    1. Checks for minimum Java version                                       #
#    2. Kills any running instances                                           #
#                                                                             #
#  Usage:                                                                     #
#    $ ./preinstall                                                           #
###############################################################################

# Check minimum java version
function check_java() {
	curver=$("${apple.jvmfallback}/java" -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-2)
	minver="${javac.socket.target}"

	if [ -z "$curver" ]; then
		curver="0.0"
	fi

	if [ $(echo "$curver>=$minver" | bc -l) -eq 0 ]; then
		osascript -e "tell app \"Installer\" to display dialog \"Java $minver is required for installation.\nDownload it now?\""
		if [ $? -eq 0 ]; then
			open "https://java.com/download/"
		fi
		exit 1
	fi
}

# Use java_home command to check minimum Java version
${apple.jvmver} > /dev/null 2>&1
code=$?

# Fallback on Internet Plug-Ins version if needed
if [ $code -ne 0 ]; then
	check_java
	code=$?
fi

# Kill any running versions
kill -9 $(ps -e |grep "${build.socket.name}.jar" |grep -v grep|awk '{print $1}') > /dev/null 2>&1
exit $code


<?xml version="1.0" encoding="UTF-8" ?>

<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="app/autoload.php">
    <php>
        <ini name="error_reporting" value="-1" />
        <server name="KERNEL_DIR" value="app/" />
    </php>

    <testsuites>
        <testsuite name="Project Test Suite">
            <directory>tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>src</directory>
        </whitelist>
    </filter>
</phpunit>

Change indentation of XML file


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="./Tests/bootstrap.php"
>
	<php>
		<server name="KERNEL_DIR" value="./Tests/" />
	</php>

    <testsuites>
        <testsuite name="Asf Core Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Add code coverage logging in PHPUnit configuration

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="./Tests/bootstrap.php"
>
	<php>
		<server name="KERNEL_DIR" value="./Tests/" />
	</php>

    <testsuites>
        <testsuite name="Asf Core Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>

    <logging>
    	<log type="coverage-text" target="php://stdout" showUncoveredFiles="true" />
    </logging>
</phpunit>


FROM fedora:27

RUN dnf -y install \
    desktop-file-utils \
    elfutils-libelf-devel \
    findutils \
    gcc \
    gcc-c++ \
    gettext \
    git \
    glibc-devel \
    glibc-headers \
    gtk-doc \
    itstool \
    lcov \
    libattr-devel \
    libffi-devel \
    libmount-devel \
    libselinux-devel \
    libxslt \
    ninja-build \
    pcre-devel \
    python3 \
    python3-pip \
    python3-wheel \
    systemtap-sdt-devel \
    zlib-devel \
    wget \
    unzip \
    make \
    mingw64-gcc \
    mingw64-gcc-c++ \
    mingw64-gettext \
    mingw64-zlib \
    mingw64-libffi \
 && dnf clean all

RUN pip3 install meson

COPY setup-android-ndk.sh .
RUN ./setup-android-ndk.sh

COPY cross_file_mingw64.txt /opt

ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID}
RUN useradd -u $HOST_USER_ID -ms /bin/bash user

USER user
WORKDIR /home/user

ENV LANG C.UTF-8

Reorder packages in alphabetical order

FROM fedora:27

RUN dnf -y install \
    desktop-file-utils \
    elfutils-libelf-devel \
    findutils \
    gcc \
    gcc-c++ \
    gettext \
    git \
    glibc-devel \
    glibc-headers \
    gtk-doc \
    itstool \
    lcov \
    libattr-devel \
    libffi-devel \
    libmount-devel \
    libselinux-devel \
    libxslt \
    make \
    mingw64-gcc \
    mingw64-gcc-c++ \
    mingw64-gettext \
    mingw64-libffi \
    mingw64-zlib \
    ninja-build \
    pcre-devel \
    python3 \
    python3-pip \
    python3-wheel \
    systemtap-sdt-devel \
    unzip \
    wget \
    zlib-devel \
 && dnf clean all

RUN pip3 install meson

COPY setup-android-ndk.sh .
RUN ./setup-android-ndk.sh

COPY cross_file_mingw64.txt /opt

ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID}
RUN useradd -u $HOST_USER_ID -ms /bin/bash user

USER user
WORKDIR /home/user

ENV LANG C.UTF-8


# $FreeBSD$

PROG=	ancontrol
MAN=	ancontrol.8

WARNS?=	6
CFLAGS+= -DANCACHE -I${.CURDIR}/../../sys

DPADD=	${LIBMD}
LDADD=	-lmd

.include <bsd.prog.mk>

Drop WARNS down to 3 since sparc64 still has justified complaints about bad casts.

# $FreeBSD$

PROG=	ancontrol
MAN=	ancontrol.8

WARNS?=	3
CFLAGS+= -DANCACHE -I${.CURDIR}/../../sys

DPADD=	${LIBMD}
LDADD=	-lmd

.include <bsd.prog.mk>


#	@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD$

PROG=	calendar
SRCS=   calendar.c io.c day.c ostern.c paskha.c
CFLAGS+= -Wall
INTER=          de_DE.ISO_8859-1 hr_HR.ISO_8859-2 ru_RU.KOI8-R
TEXTMODE?=	444

beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \
	    ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar
.for lang in ${INTER}
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \
    		${.CURDIR}/calendars/${lang}/calendar.* \
		${DESTDIR}${SHAREDIR}/calendar/${lang};
.endfor

.include <bsd.prog.mk>

Add new and Latin15 names

#	@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD$

PROG=	calendar
SRCS=   calendar.c io.c day.c ostern.c paskha.c
CFLAGS+= -Wall
INTER=          de_DE.ISO_8859-1 hr_HR.ISO_8859-2 ru_RU.KOI8-R
DE_LINKS=       de_DE.ISO8859-1 de_DE.ISO_8859-15 de_DE.ISO8859-15
HR_LINKS=       hr_HR.ISO8859-2
TEXTMODE?=	444

beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \
	    ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar
.for link in ${DE_LINKS}
	ln -sf de_DE.ISO_8859-1 ${DESTDIR}${SHAREDIR}/calendar/${link}
.endfor
.for link in ${HR_LINKS}
	ln -sf hr_HR.ISO_8859-2 ${DESTDIR}${SHAREDIR}/calendar/${link}
.endfor
.for lang in ${INTER}
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \
    		${.CURDIR}/calendars/${lang}/calendar.* \
		${DESTDIR}${SHAREDIR}/calendar/${lang};
.endfor

.include <bsd.prog.mk>


# https://www.gitpod.io/docs/config-docker/
FROM gitpod/workspace-full:2022-05-25-08-50-33

RUN sudo install-packages libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb

Add comment about dependencies being installed on Dockerfile

# https://www.gitpod.io/docs/config-docker/
FROM gitpod/workspace-full:2022-05-25-08-50-33

# Install Cypress dependencies. Reference: https://docs.cypress.io/guides/references/migration-guide#Linux-dependencies
RUN sudo install-packages libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb


<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="Feature">
            <directory suffix="Test.php">./tests/Feature</directory>
        </testsuite>
        <testsuite name="Http">
            <directory suffix="Test.php">./tests/Http</directory>
        </testsuite>
        <testsuite name="Unit">
            <directory suffix="Test.php">./tests/Unit</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
        </whitelist>
    </filter>
    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="BCRYPT_ROUNDS" value="4"/>
        <env name="CACHE_DRIVER" value="array"/>
        <env name="DB_CONNECTION" value="testing"/>
        <env name="MAIL_DRIVER" value="array"/>
        <env name="QUEUE_DRIVER" value="sync"/>
        <env name="SESSION_DRIVER" value="array"/>
    </php>
</phpunit>

Exclude Nova stuff from phpunit coverage

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="Feature">
            <directory suffix="Test.php">./tests/Feature</directory>
        </testsuite>
        <testsuite name="Http">
            <directory suffix="Test.php">./tests/Http</directory>
        </testsuite>
        <testsuite name="Unit">
            <directory suffix="Test.php">./tests/Unit</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
            <exclude>
                <directory suffix=".php">./src/Nova</directory>
                <file>./src/Providers/NovaServiceProvider.php</file>
            </exclude>
        </whitelist>
    </filter>
    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="BCRYPT_ROUNDS" value="4"/>
        <env name="CACHE_DRIVER" value="array"/>
        <env name="DB_CONNECTION" value="testing"/>
        <env name="MAIL_DRIVER" value="array"/>
        <env name="QUEUE_DRIVER" value="sync"/>
        <env name="SESSION_DRIVER" value="array"/>
    </php>
</phpunit>


<phpunit bootstrap="cms/tests/bootstrap.php" colors="true">
    <testsuite name="Default">
        <directory>tests/</directory>
    </testsuite>
    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">code/</directory>
            <exclude>
                <directory suffix=".php">tests/</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

FIX convert CI bootstrap references to new their new locations in vendor

<phpunit bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" colors="true">
    <testsuite name="Default">
        <directory>tests/</directory>
    </testsuite>
    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">code/</directory>
            <exclude>
                <directory suffix=".php">tests/</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="false"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         stopOnFailure="false"
         bootstrap="tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="Doctrine ODM MongoDB Test Suite">
            <directory>./tests/Doctrine/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">./lib/Doctrine/ODM/MongoDB</directory>
        </whitelist>
    </filter>

    <groups>
        <exclude>
            <group>performance</group>
        </exclude>
    </groups>

    <php>
        <const name="DOCTRINE_MONGODB_SERVER" value="mongodb://localhost:27017" />
        <const name="DOCTRINE_MONGODB_DATABASE" value="doctrine_odm_tests" />

        <ini name="mongo.native_long" value="false" />
        <ini name="mongo.long_as_object" value="true" />
    </php>
</phpunit>

Add note about ini settings for legacy drivers

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="false"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         stopOnFailure="false"
         bootstrap="tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="Doctrine ODM MongoDB Test Suite">
            <directory>./tests/Doctrine/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">./lib/Doctrine/ODM/MongoDB</directory>
        </whitelist>
    </filter>

    <groups>
        <exclude>
            <group>performance</group>
        </exclude>
    </groups>

    <php>
        <const name="DOCTRINE_MONGODB_SERVER" value="mongodb://localhost:27017" />
        <const name="DOCTRINE_MONGODB_DATABASE" value="doctrine_odm_tests" />

        <!-- These two ini settings prevent errors with command cursors due to
             the cursor ID being in an unsupported format on newer servers. -->
        <ini name="mongo.native_long" value="false" />
        <ini name="mongo.long_as_object" value="true" />
    </php>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit
        backupGlobals="false"
        backupStaticAttributes="false"
        colors="true"
        convertErrorsToExceptions="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true"
        processIsolation="false"
        stopOnFailure="false"
        syntaxCheck="false"
        bootstrap="tests/bootstrap.php">

    <testsuites>
        <testsuite name="Unit tests">
            <directory>tests/Wsdl2PhpGenerator/Tests/Unit</directory>
        </testsuite>
    </testsuites>

    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>

    <!-- Only determine code coverage for directories with our own code, src and lib. -->
    <filter>
        <whitelist>
            <directory suffix=".php">src</directory>
            <directory suffix=".php">lib</directory>
        </whitelist>
    </filter>
</phpunit>

Remove references to lib folder in phpunit config.

<?xml version="1.0" encoding="UTF-8"?>

<phpunit
        backupGlobals="false"
        backupStaticAttributes="false"
        colors="true"
        convertErrorsToExceptions="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true"
        processIsolation="false"
        stopOnFailure="false"
        syntaxCheck="false"
        bootstrap="tests/bootstrap.php">

    <testsuites>
        <testsuite name="Unit tests">
            <directory>tests/Wsdl2PhpGenerator/Tests/Unit</directory>
        </testsuite>
    </testsuites>

    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>

    <!-- Only determine code coverage for directories with our own code, src. -->
    <filter>
        <whitelist>
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>
</phpunit>


FROM lambci/lambda-base:build

ENV PATH=/var/lang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    LD_LIBRARY_PATH=/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib \
    AWS_EXECUTION_ENV=AWS_Lambda_python3.6 \
    PYTHONPATH=/var/runtime

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/python3.6.tgz | tar -xz -C / && \
  curl https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz | tar -xJ && \
  cd Python-3.6.1 && \
  ./configure --prefix=/var/lang && \
  make -j$(getconf _NPROCESSORS_ONLN) libinstall inclinstall && \
  cd .. && \
  rm -rf Python-3.6.1 && \
  pip3 install awscli virtualenv --no-cache-dir

Fix pkg-config path for python3.6

FROM lambci/lambda-base:build

ENV PATH=/var/lang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    LD_LIBRARY_PATH=/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib \
    AWS_EXECUTION_ENV=AWS_Lambda_python3.6 \
    PYTHONPATH=/var/runtime \
    PKG_CONFIG_PATH=/var/lang/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/python3.6.tgz | tar -xz -C / && \
  curl https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz | tar -xJ && \
  cd Python-3.6.1 && \
  LIBS="$LIBS -lutil -lrt" ./configure --prefix=/var/lang && \
  make -j$(getconf _NPROCESSORS_ONLN) libinstall inclinstall && \
  sed -i '/^prefix=/c\prefix=/var/lang' /var/lang/lib/pkgconfig/python-3.6.pc && \
  cd .. && \
  rm -rf Python-3.6.1 && \
  pip3 install awscli virtualenv --no-cache-dir


FROM golang:1-alpine

LABEL maintainer='Michaël "e7d" Ferrand <michael@e7d.io>'

WORKDIR /app
COPY server/go/* ./
COPY web/dist ./web

EXPOSE 80
CMD [ "go", "run", "server.go", "80", "web" ]

Use a compiled version of the Go server

FROM golang:1-alpine

LABEL maintainer='Michaël "e7d" Ferrand <michael@e7d.io>'

WORKDIR /app
COPY server/go/* ./
COPY web/dist ./web

RUN go build -o serve server.go \
    && rm server.go

EXPOSE 80
CMD [ "./server", "80", "web" ]


PROG=	manpath
SRCS=	manpath.c
MAN1=	manpath.1

DPADD=	${LIBMAN}
LDADD=	${LIBMAN}

CFLAGS+= -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS
CFLAGS+= -DALT_SYSTEMS -I${.CURDIR}/../lib -I${.OBJDIR}/../lib
CLEANFILES+=	${MAN1}
MANDEPEND+=	${MAN1}

${MAN1}: ${.CURDIR}/manpath.man
	@${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
	sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
	    -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
	    -e 's,%manpath_config_file%,${manpath_config_file},' \
	${.CURDIR}/manpath.man > ${MAN1}

afterinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644
	    ${.CURDIR}/manpath.config ${DESTDIR}${manpath_config_file}.sample

.include <bsd.prog.mk>

Add a missing backslash from the last commit. (Broke installworld)

PROG=	manpath
SRCS=	manpath.c
MAN1=	manpath.1

DPADD=	${LIBMAN}
LDADD=	${LIBMAN}

CFLAGS+= -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS
CFLAGS+= -DALT_SYSTEMS -I${.CURDIR}/../lib -I${.OBJDIR}/../lib
CLEANFILES+=	${MAN1}
MANDEPEND+=	${MAN1}

${MAN1}: ${.CURDIR}/manpath.man
	@${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
	sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
	    -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
	    -e 's,%manpath_config_file%,${manpath_config_file},' \
	${.CURDIR}/manpath.man > ${MAN1}

afterinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
	    ${.CURDIR}/manpath.config ${DESTDIR}${manpath_config_file}.sample

.include <bsd.prog.mk>


# Makefile for less
#
# $FreeBSD$

PROG=	less
SRCS=	main.c screen.c brac.c ch.c charset.c cmdbuf.c command.c decode.c \
	edit.c filename.c forwback.c help.c ifile.c input.c jump.c line.c \
	linenum.c lsystem.c mark.c optfunc.c option.c opttbl.c os.c output.c \
	position.c prompt.c search.c signal.c tags.c ttyin.c version.c
DPADD=	${LIBNCURSES}
LDADD=	-lncurses

LINKS=	${BINDIR}/less /usr/bin/more

MAN1=	less.1
MANDEPEND=	less.1
CLEANFILES+=	${MANDEPEND}

.include "Makefile.common"
.include <bsd.prog.mk>

Install a manpage for more.

# Makefile for less
#
# $FreeBSD$

PROG=	less
SRCS=	main.c screen.c brac.c ch.c charset.c cmdbuf.c command.c decode.c \
	edit.c filename.c forwback.c help.c ifile.c input.c jump.c line.c \
	linenum.c lsystem.c mark.c optfunc.c option.c opttbl.c os.c output.c \
	position.c prompt.c search.c signal.c tags.c ttyin.c version.c
DPADD=	${LIBNCURSES}
LDADD=	-lncurses

LINKS=	${BINDIR}/less /usr/bin/more

MAN1=	less.1
MANDEPEND=	less.1
CLEANFILES+=	${MANDEPEND}

MLINKS= less.1 more.1

.include "Makefile.common"
.include <bsd.prog.mk>


#	@(#)Makefile	8.2 (Berkeley) 4/18/94

PROG=	arp
MAN8=	arp.0
CLEANFILES=arp4.0

all: ${PROG} arp4.0 ${MAN8}

beforeinstall:
	install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} arp4.0 \
	    ${DESTDIR}${MANDIR}4/arp.0

.include <bsd.prog.mk>

Remove stuff for building manual pages the old way.

#	@(#)Makefile	8.2 (Berkeley) 4/18/94

PROG=	arp
MAN8=	arp.0
CLEANFILES=arp4.0

.include <bsd.prog.mk>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="Symfony Serializer Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Fix the path to the boostrap files in the components

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="Tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="Symfony Serializer Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<phpunit bootstrap="./phpunit.php">
    <testsuites>
        <testsuite>
            <directory>./tests</directory>
        </testsuite>
    </testsuites>
</phpunit>

Add support for phpunit5 code coverage

<phpunit bootstrap="./phpunit.php">
    <testsuites>
        <testsuite>
            <directory>./tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="true"
         bootstrap="autoload.php.dist"
        >

    <php>
        <ini name="intl.default_locale" value="en"/>
        <ini name="intl.error_level" value="0"/>
        <ini name="memory_limit" value="-1"/>
    </php>

    <testsuites>
        <testsuite name="Kunstmaan Test Suite">
            <directory suffix="Test.php">./src/Kunstmaan/*/Tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>

    <groups>
        <exclude>
            <group>migrations</group>
            <group>importer</group>
        </exclude>
    </groups>

    <logging>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
    </logging>
</phpunit>

Add the TranslatorBundle's test listener

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="true"
         bootstrap="autoload.php.dist"
        >

    <php>
        <ini name="intl.default_locale" value="en"/>
        <ini name="intl.error_level" value="0"/>
        <ini name="memory_limit" value="-1"/>
    </php>

    <testsuites>
        <testsuite name="Kunstmaan Test Suite">
            <directory suffix="Test.php">./src/Kunstmaan/*/Tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>

    <groups>
        <exclude>
            <group>migrations</group>
            <group>importer</group>
        </exclude>
    </groups>

    <logging>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
    </logging>

    <listeners>
        <listener class="TestListener" file="src/Kunstmaan/TranslatorBundle/Tests/TestListener.php"/>
    </listeners>
</phpunit>


# Run composer in a container.
#
# docker run --rm -it \
#    -v $(pwd):/usr/src/app \
#    -v ~/.composer:/root/.composer \
#    -v ~/.ssh:/root/.ssh:ro \
#    graze/composer:php-7.0

FROM alpine:edge

MAINTAINER Samuel Parkinson <sam@graze.com>

RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
    apk add --no-cache \
    ca-certificates \
    git \
    mercurial \
    subversion \
    php7 \
    php7-curl \
    php7-json \
    php7-openssl \
    php7-phar \
    php7-posix

RUN /usr/bin/php7 -r "readfile('https://getcomposer.org/installer');" | \
    /usr/bin/php7 -- --install-dir=/usr/local/bin --filename=composer

COPY ./composer-wrapper /usr/local/bin/composer-wrapper

VOLUME ["/usr/src/app", "/root/.composer"]

WORKDIR /usr/src/app

ENTRYPOINT ["/usr/local/bin/composer-wrapper"]

Use the `--repository` argument with `apk add`.

# Run composer in a container.
#
# docker run --rm -it \
#    -v $(pwd):/usr/src/app \
#    -v ~/.composer:/root/.composer \
#    -v ~/.ssh:/root/.ssh:ro \
#    graze/composer:php-7.0

FROM alpine:edge

MAINTAINER Samuel Parkinson <sam@graze.com>

RUN apk add --no-cache --repository "http://dl-cdn.alpinelinux.org/alpine/edge/testing" \
    ca-certificates \
    git \
    mercurial \
    subversion \
    php7 \
    php7-curl \
    php7-json \
    php7-openssl \
    php7-phar \
    php7-posix

RUN /usr/bin/php7 -r "readfile('https://getcomposer.org/installer');" | \
    /usr/bin/php7 -- --install-dir=/usr/local/bin --filename=composer

COPY ./composer-wrapper /usr/local/bin/composer-wrapper

VOLUME ["/usr/src/app", "/root/.composer"]

WORKDIR /usr/src/app

ENTRYPOINT ["/usr/local/bin/composer-wrapper"]


CC = gcc
CFLAGS = -Wall -Wextra -g
LDFLAGS =

BIN_1 = original_string_sort
OBJ_1 = $(BIN_1).o
$(BIN_1) : $(OBJ_1)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(OBJ_1).o : $(OBJ_1).c

BIN_2 = new_string_sort
OBJ_2 = $(BIN_2).o
$(BIN_2) : $(OBJ_2)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(OBJ_2).o : $(OBJ_2).c

BIN_3 = test_original_string_sort
OBJ_3 = $(BIN_3).o
$(BIN_3) : $(OBJ_3)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(OBJ_3).o : $(OBJ_3).c

.PHONY : clean
clean :
	rm *.o $(BIN_1) $(BIN_2) $(BIN_3)

Add make rule for test_new_string_sort

CC = gcc
CFLAGS = -Wall -Wextra -g
LDFLAGS =

BIN_1 = original_string_sort
OBJ_1 = $(BIN_1).o
$(BIN_1) : $(OBJ_1)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(OBJ_1).o : $(OBJ_1).c

BIN_2 = new_string_sort
OBJ_2 = $(BIN_2).o
$(BIN_2) : $(OBJ_2)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(OBJ_2).o : $(OBJ_2).c

BIN_3 = test_original_string_sort
OBJ_3 = $(BIN_3).o
$(BIN_3) : $(OBJ_3)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(OBJ_3).o : $(OBJ_3).c

BIN_4 = test_new_string_sort
OBJ_4 = $(BIN_4).o
$(BIN_4) : $(OBJ_4)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(OBJ_4).o : $(OBJ_4).c

.PHONY : clean
clean :
	rm *.o $(BIN_1) $(BIN_2) $(BIN_3) $(BIN_4)


<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false">
    <testsuites>
        <testsuite name="Tala Payments Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Add mockery listener to phpunit

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false">
    <testsuites>
        <testsuite name="Tala Payments Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
    <listeners>
        <listener class="Mockery\Adapter\Phpunit\TestListener" file="vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php" />
    </listeners>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         verbose="true"
         bootstrap="Tests/tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="BlockBundle Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Tests/</directory>
                <directory>./DataFixtures/</directory>
                <directory>./Resources/</directory>
                <directory>./DependencyInjection/</directory>
                <directory>./Twig/</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Exclude vendor from phpunit whitelist for quicker coverage

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         verbose="true"
         bootstrap="Tests/tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="BlockBundle Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Tests/</directory>
                <directory>./DataFixtures/</directory>
                <directory>./Resources/</directory>
                <directory>./DependencyInjection/</directory>
                <directory>./Twig/</directory>
                <directory>./vendor/</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="utf-8"?>
<!--
    phpunit -c phpunit.xml
-->
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         syntaxCheck="true"
         bootstrap="./vendor/autoload.php">

    <testsuites>
        <testsuite name="unit">
            <directory>./tests/UnitTest/</directory>
        </testsuite>
        <testsuite name="integration">
            <directory>./tests/IntegrationTest/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
            <exclude>
                <file>src/Compiler/Template.php</file>
            </exclude>
        </whitelist>
    </filter>

</phpunit>

Remove PHPUnit warning when a test does not contain assertions

<?xml version="1.0" encoding="utf-8"?>
<!--
    phpunit -c phpunit.xml
-->
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         syntaxCheck="true"
         beStrictAboutTestsThatDoNotTestAnything="false"
         bootstrap="./vendor/autoload.php">

    <testsuites>
        <testsuite name="unit">
            <directory>./tests/UnitTest/</directory>
        </testsuite>
        <testsuite name="integration">
            <directory>./tests/IntegrationTest/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
            <exclude>
                <file>src/Compiler/Template.php</file>
            </exclude>
        </whitelist>
    </filter>

</phpunit>


<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.0/phpunit.xsd"
         testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
         backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="./vendor/autoload.php"
         cacheTokens="false"
         colors="true"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutOutputDuringTests="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         forceCoversAnnotation="false"
         mapTestClassNameToCoveredClassName="false"
         processIsolation="false"
         stopOnError="false"
         stopOnFailure="false"
         stopOnIncomplete="false"
         stopOnSkipped="false"
         stopOnRisky="false"
         verbose="true">
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory>./src</directory>
            <exclude>
                <directory>./libsodium</directory>
                <directory>./vendor</directory>
                <directory>./stub</directory>
                <directory>./test</directory>
                <directory>./doc</directory>
            </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-clover" target="./build/logs/clover.xml"/>
    </logging>
    <testsuites>
        <testsuite name="Paragonie/Halite Test Suite">
            <directory suffix="Test.php">./test/unit</directory>
        </testsuite>
    </testsuites>
</phpunit>

Remove the test suite loader class attribute.

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.0/phpunit.xsd"
         backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="./vendor/autoload.php"
         cacheTokens="false"
         colors="true"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutOutputDuringTests="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         forceCoversAnnotation="false"
         mapTestClassNameToCoveredClassName="false"
         processIsolation="false"
         stopOnError="false"
         stopOnFailure="false"
         stopOnIncomplete="false"
         stopOnSkipped="false"
         stopOnRisky="false"
         verbose="true">
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory>./src</directory>
            <exclude>
                <directory>./libsodium</directory>
                <directory>./vendor</directory>
                <directory>./stub</directory>
                <directory>./test</directory>
                <directory>./doc</directory>
            </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-clover" target="./build/logs/clover.xml"/>
    </logging>
    <testsuites>
        <testsuite name="Paragonie/Halite Test Suite">
            <directory suffix="Test.php">./test/unit</directory>
        </testsuite>
    </testsuites>
</phpunit>


# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

FROM ubuntu:16.04

RUN apt-get update && \
  apt-get install -y locales locales-all git curl doxygen python3 python3-pip xsltproc && \
  apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

COPY python-requirements.txt ./
RUN pip3 install -r python-requirements.txt

Use Ubuntu 18.04 in documentation build container

# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

FROM ubuntu:18.04

RUN apt-get update && \
  apt-get install -y locales locales-all git curl doxygen python3 python3-pip xsltproc && \
  apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

COPY python-requirements.txt ./
RUN pip3 install -r python-requirements.txt


FROM lambci/lambda-base:build

ENV AWS_EXECUTION_ENV=AWS_Lambda_python2.7 \
    PYTHONPATH=/var/runtime

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/python2.7.tgz | tar -zx -C /

# Add these as a separate layer as they get updated frequently
RUN curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python && \
  pip install -U virtualenv pipenv --no-cache-dir && \
  curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/1.0.3/get-poetry.py | POETRY_VERSION=1.0.3 python && \
  pip install -U awscli boto3 aws-sam-cli==0.22.0 aws-lambda-builders==0.7.0 --no-cache-dir

ENV PATH=/root/.poetry/bin:$PATH

Drop aws-lambda-builders back to 0.4.0 on build-python2.7 image

FROM lambci/lambda-base:build

ENV AWS_EXECUTION_ENV=AWS_Lambda_python2.7 \
    PYTHONPATH=/var/runtime

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/python2.7.tgz | tar -zx -C /

# Add these as a separate layer as they get updated frequently
RUN curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python && \
  pip install -U virtualenv pipenv --no-cache-dir && \
  curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/1.0.3/get-poetry.py | POETRY_VERSION=1.0.3 python && \
  pip install -U awscli boto3 aws-sam-cli==0.22.0 aws-lambda-builders==0.4.0 --no-cache-dir

ENV PATH=/root/.poetry/bin:$PATH


<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="Bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="application">
            <directory>./ApplicationTest</directory>
        </testsuite>
        <testsuite name="api">
            <directory>./ApiTest</directory>
        </testsuite>
    </testsuites>

    <filter>
        <blacklist>
            <!--Exclude everything from vendor and data, so code coverage statistics takes only our own code -->
            <directory>../vendor</directory>
            <directory>../data</directory>
        </blacklist>
    </filter>

    <logging>
        <log type="coverage-html" target="../data/logs/report" charset="UTF-8" yui="true" hightlight="true" lowupperbound="50" highlowerbound="80"></log>
    </logging>

</phpunit>

Comment code coverage in unit tests

<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="Bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="application">
            <directory>./ApplicationTest</directory>
        </testsuite>
        <testsuite name="api">
            <directory>./ApiTest</directory>
        </testsuite>
    </testsuites>

    <filter>
        <blacklist>
            <!--Exclude everything from vendor and data, so code coverage statistics takes only our own code -->
            <directory>../vendor</directory>
            <directory>../data</directory>
        </blacklist>
    </filter>

    <logging>
        <!--<log type="coverage-html" target="../data/logs/report" charset="UTF-8" yui="true" hightlight="true" lowupperbound="50" highlowerbound="80"></log>-->
    </logging>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         beStrictAboutOutputDuringTests="true"
         beStrictAboutTestSize="true"
         beStrictAboutTestsThatDoNotTestAnything="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

    <testsuites>
        <testsuite name="EJM Flow Test Suit">
            <directory>tests</directory>
        </testsuite>
        <testsuite name="EJMFlowBundle Test Suit">
            <directory>src/Bridge/Symfony/FlowBundle/Tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>src</directory>
            <exclude>
                <directory>src/Bridge/Symfony/FlowBundle/Resources</directory>
            </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>

Exclude bundle tests folder from coverage

<?xml version="1.0" encoding="UTF-8"?>

<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         beStrictAboutOutputDuringTests="true"
         beStrictAboutTestSize="true"
         beStrictAboutTestsThatDoNotTestAnything="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

    <testsuites>
        <testsuite name="EJM Flow Test Suit">
            <directory>tests</directory>
        </testsuite>
        <testsuite name="EJMFlowBundle Test Suit">
            <directory>src/Bridge/Symfony/FlowBundle/Tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>src</directory>
            <exclude>
                <directory>src/Bridge/Symfony/FlowBundle/Resources</directory>
                <directory>src/Bridge/Symfony/FlowBundle/Tests</directory>
            </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>


# $FreeBSD$

BCDIR=	${.CURDIR}/../../../contrib/bc
.PATH: ${BCDIR}/bc ${BCDIR}/lib ${BCDIR}/doc ${BCDIR}/Examples

PROG=	bc
SRCS=	bc.y execute.c global.c load.c main.c scan.l storage.c util.c \
	number.c getopt.c getopt1.c
CFLAGS+=-I. -I${.CURDIR} -I${BCDIR}/h -I${BCDIR}/bc
CFLAGS+=-DHAVE_CONFIG_H
DPADD=	${LIBREADLINE} ${LIBTERMCAP}
LDADD=	-lreadline -ltermcap

FILES=	ckbook.b pi.b primes.b twins.b
FILESDIR=	${SHAREDIR}/examples/bc

.include <bsd.prog.mk>

Remove getopt*.c, we already have getopt_long() in libc

# $FreeBSD$

BCDIR=	${.CURDIR}/../../../contrib/bc
.PATH: ${BCDIR}/bc ${BCDIR}/lib ${BCDIR}/doc ${BCDIR}/Examples

PROG=	bc
SRCS=	bc.y execute.c global.c load.c main.c scan.l storage.c util.c \
	number.c
CFLAGS+=-I. -I${.CURDIR} -I${BCDIR}/h -I${BCDIR}/bc
CFLAGS+=-DHAVE_CONFIG_H
DPADD=	${LIBREADLINE} ${LIBTERMCAP}
LDADD=	-lreadline -ltermcap

FILES=	ckbook.b pi.b primes.b twins.b
FILESDIR=	${SHAREDIR}/examples/bc

.include <bsd.prog.mk>


<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
        backupGlobals="true"
        backupStaticAttributes="false"
        colors="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true"
        convertErrorsToExceptions="true"
        processIsolation="false"
        stopOnFailure="false"
        stopOnError="false"
        bootstrap="bootstrap.php">

    <testsuites>
        <testsuite name="AllTests">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">../</directory>
            <exclude>
                <directory>../.git</directory>
                <directory>../.github</directory>
                <directory>../XTemplate</directory>
                <directory>../cache</directory>
                <directory>../vendor</directory>
                <directory>../tests</directory>
            </exclude>
        </whitelist>
    </filter>

    <php>
        <ini name="display_errors" value="true"/>
    </php>

</phpunit>

Migrate PHPUnit schema for 9.5.x

<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
        backupGlobals="true"
        backupStaticAttributes="false"
        colors="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true"
        convertErrorsToExceptions="true"
        processIsolation="false"
        stopOnFailure="false"
        stopOnError="false"
        bootstrap="bootstrap.php">

    <testsuites>
        <testsuite name="AllTests">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>

    <coverage cacheDirectory="./_output"
              includeUncoveredFiles="true"
              processUncoveredFiles="true"
              pathCoverage="false"
              ignoreDeprecatedCodeUnits="true"
              disableCodeCoverageIgnore="false">

        <include>
            <directory suffix=".php">../</directory>
        </include>

        <exclude>
            <directory>../.git</directory>
            <directory>../.github</directory>
            <directory>../XTemplate</directory>
            <directory>../cache</directory>
            <directory>../vendor</directory>
            <directory>../tests</directory>
        </exclude>
    </coverage>

    <php>
        <ini name="display_errors" value="true"/>
    </php>

</phpunit>


FROM binduwavell/codenvy-alfresco-generator-community:0.3

ADD $app$/package.json /tmp/application/package.json

RUN cd /tmp/application && npm install

# 1. Update permissions
# 2. Copy nodejs modules to the application folder
# 3. Update permissions recursively
# 4. Makes newly created files accessible for anyone
# 5. Link the generator
# 6. Sleep so we can shell into the container
CMD sudo chmod a+rw /home/user/application/ && \
    cp -a /tmp/application/node_modules /home/user/application/ && \
    sudo chmod a+rw -R /home/user/application/ && \
    umask 0 && \
    cd /home/user/application ; sudo npm link && \
    sleep 365d

Add 256 color support to the runner

FROM binduwavell/codenvy-alfresco-generator-community:0.4

ADD $app$/package.json /tmp/application/package.json

RUN cd /tmp/application && npm install

# 1. Update permissions
# 2. Copy nodejs modules to the application folder
# 3. Update permissions recursively
# 4. Makes newly created files accessible for anyone
# 5. Link the generator
# 6. Sleep so we can shell into the container
CMD sudo chmod a+rw /home/user/application/ && \
    cp -a /tmp/application/node_modules /home/user/application/ && \
    sudo chmod a+rw -R /home/user/application/ && \
    umask 0 && \
    cd /home/user/application ; sudo npm link && \
    sleep 365d


/ replace_contents "[data-hook='presentation']"

= label :new_variant, option.option_type.presentation
- if @variant.new_record?
  = select(:new_variant, option.option_type.presentation, option.option_type.option_values.collect {|ov| [ ov.presentation, ov.id ] }, {}, {:class => 'select2 fullwidth'})
- else
  - opt = @variant.option_values.detect {|o| o.option_type == option.option_type }.try(:presentation)
  - if opt && !variant_unit_option_type?(option.option_type)
    = text_field(:new_variant,  option.option_type.presentation, :value => opt, :disabled => 'disabled', :class => 'fullwidth')

Remove entire field div instead of just the text field

/ replace "[data-hook='presentation']"

- unless variant_unit_option_type?(option.option_type)
  .field{"data-hook" => "presentation"}
    = label :new_variant, option.option_type.presentation
    - if @variant.new_record?
      = select(:new_variant, option.option_type.presentation, option.option_type.option_values.collect {|ov| [ ov.presentation, ov.id ] }, {}, {:class => 'select2 fullwidth'})
    - else
      - if opt = @variant.option_values.detect {|o| o.option_type == option.option_type }.try(:presentation)
        = text_field(:new_variant,  option.option_type.presentation, :value => opt, :disabled => 'disabled', :class => 'fullwidth')


.PHONY: srpm

srpm:
	bash build.sh $(outdir)

Fix Makefile to use the right path to execute build.sh

MAKE_FILE_DIR := $(realpath $(dir $(firstword $(MAKEFILE_LIST))))

.PHONY: srpm

srpm:
	bash $(MAKE_FILE_DIR)/build.sh $(outdir)


#	@(#)Makefile	1.1 (Berkeley) 6/6/93
#	$Id$

PROG=	ktrace
SRCS=	ktrace.c subr.c
MLINKS= ktrace.1 trace.1 ktrace.1 truss.1

.include <bsd.prog.mk>

Delete truss manpage link. We have now a real truss command.

#	@(#)Makefile	1.1 (Berkeley) 6/6/93
#	$Id: Makefile,v 1.4 1997/02/22 19:55:27 peter Exp $

PROG=	ktrace
SRCS=	ktrace.c subr.c
MLINKS= ktrace.1 trace.1

.include <bsd.prog.mk>


FROM windowsservercore

ENV NPM_CONFIG_LOGLEVEL info
ENV IOJS_VERSION 3.2.0

RUN powershell -Command "wget -Uri https://iojs.org/dist/v%IOJS_VERSION%/iojs-v%IOJS_VERSION%-x64.msi -OutFile iojs.msi -UseBasicParsing"

RUN msiexec.exe /q /i iojs.msi

CMD [ "iojs" ]

Patch iojs.exe to fix DNS lookup problems as a workaround

FROM windowsservercore

ENV NPM_CONFIG_LOGLEVEL info
ENV IOJS_VERSION 3.2.0

RUN powershell -Command "wget -Uri https://iojs.org/dist/v%IOJS_VERSION%/iojs-v%IOJS_VERSION%-x64.msi -OutFile iojs.msi -UseBasicParsing"

RUN msiexec.exe /q /i iojs.msi

RUN powershell -Command "wget -Uri https://github.com/StefanScherer/win-patch-iojs/releases/download/1.0.5/patchiojs.exe" -OutFile patchiojs.exe -UseBasicParsing"
RUN patchiojs.exe "C:\Program Files\iojs\iojs.exe"
RUN patchiojs.exe "C:\Program Files\iojs\node.exe"

CMD [ "iojs" ]


# CEPH DAEMON IMAGE
# CEPH VERSION: Jewel
# CEPH VERSION DETAIL: 10.2.x

FROM cdxvirt/ceph-base:base-10.2.9-3
MAINTAINER Sébastien Han "seb@redhat.com"

# Add bootstrap script, ceph defaults key/values for KV store
ADD *.sh ceph.defaults check_zombie_mons.py ./osd_scenarios/* entrypoint.sh.in /

# Add bootstrap script, ceph defaults key/values for KV store
ADD *.sh ceph.defaults check_zombie_mons.py ./osd_scenarios/* entrypoint.sh.in disabled_scenario /

# Modify the entrypoint
RUN bash "/generate_entrypoint.sh" && \
  rm -f /generate_entrypoint.sh && \
  bash -n /*.sh

# Add templates for confd
ADD ./confd/templates/* /etc/confd/templates/
ADD ./confd/conf.d/* /etc/confd/conf.d/

# Add cdxvirt scripts
ADD cdx /cdx
RUN mv /cdx/ceph-api /usr/local/bin/ceph-api

# Add volumes for Ceph config and data
VOLUME ["/etc/ceph","/var/lib/ceph", "/etc/ganesha"]

# Execute the entrypoint
WORKDIR /
ENTRYPOINT ["/entrypoint.sh"]

Upgrade to ubuntu 16.04 and 10.2.10

# CEPH DAEMON IMAGE
# CEPH VERSION: Jewel
# CEPH VERSION DETAIL: 10.2.x

FROM cdxvirt/ceph-base:base-10.2.10-1
MAINTAINER Sébastien Han "seb@redhat.com"

# Add bootstrap script, ceph defaults key/values for KV store
ADD *.sh ceph.defaults check_zombie_mons.py ./osd_scenarios/* entrypoint.sh.in /

# Add bootstrap script, ceph defaults key/values for KV store
ADD *.sh ceph.defaults check_zombie_mons.py ./osd_scenarios/* entrypoint.sh.in disabled_scenario /

# Modify the entrypoint
RUN bash "/generate_entrypoint.sh" && \
  rm -f /generate_entrypoint.sh && \
  bash -n /*.sh

# Add templates for confd
ADD ./confd/templates/* /etc/confd/templates/
ADD ./confd/conf.d/* /etc/confd/conf.d/

# Add cdxvirt scripts
ADD cdx /cdx
RUN mv /cdx/ceph-api /usr/local/bin/ceph-api

# Add volumes for Ceph config and data
VOLUME ["/etc/ceph","/var/lib/ceph", "/etc/ganesha"]

# Execute the entrypoint
WORKDIR /
ENTRYPOINT ["/entrypoint.sh"]


# Configured file and directory locations.
SET(CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
SET(VTK_LIB_DIR "@LIBRARY_OUTPUT_PATH@)
SET(VTK_INSTALL_QT_DIR "@VTK_INSTALL_QT_DIR@")
SET(VTK_INSTALL_QT_PLUGIN_DIR "@VTK_INSTALL_QT_PLUGIN_DIR@")
SET(VTK_INSTALL_QT_PLUGIN_FILE "@CMAKE_SHARED_LIBRARY_PREFIX@QVTKWidgetPlugin@CMAKE_SHARED_LIBRARY_SUFFIX@")

# Install the file to the specified location.
MESSAGE(STATUS "Installing ${VTK_INSTALL_QT_PLUGIN_DIR}/${VTK_INSTALL_QT_PLUGIN_FILE}")
FILE(INSTALL DESTINATION "${VTK_INSTALL_QT_PLUGIN_DIR}" TYPE SHARED_LIBRARY
  FILES "${VTK_LIB_DIR}/${VTK_INSTALL_QT_PLUGIN_FILE}")

Fix typo in previous commit.

# Configured file and directory locations.
SET(CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
SET(VTK_LIB_DIR "@LIBRARY_OUTPUT_PATH@")
SET(VTK_INSTALL_QT_DIR "@VTK_INSTALL_QT_DIR@")
SET(VTK_INSTALL_QT_PLUGIN_DIR "@VTK_INSTALL_QT_PLUGIN_DIR@")
SET(VTK_INSTALL_QT_PLUGIN_FILE "@CMAKE_SHARED_LIBRARY_PREFIX@QVTKWidgetPlugin@CMAKE_SHARED_LIBRARY_SUFFIX@")

# Install the file to the specified location.
MESSAGE(STATUS "Installing ${VTK_INSTALL_QT_PLUGIN_DIR}/${VTK_INSTALL_QT_PLUGIN_FILE}")
FILE(INSTALL DESTINATION "${VTK_INSTALL_QT_PLUGIN_DIR}" TYPE SHARED_LIBRARY
  FILES "${VTK_LIB_DIR}/${VTK_INSTALL_QT_PLUGIN_FILE}")


# generated image name from this dockerfile: centos_syslog_ng_dev_36
FROM balabit/centos_base_for_syslog_ng:latest
MAINTAINER Andras Mitzki <andras.mitzki@balabit.com>

ENV BRANCH_NAME="3.6/master"
RUN . ${SELF_BUILD_SCRIPT_DIR}/setup_environment_variables.sh && ${SELF_BUILD_SCRIPT_DIR}/checkout_and_build_syslog_ng.sh

ENV INCUBATOR_BRANCH_NAME="master"
RUN . ${SELF_BUILD_SCRIPT_DIR}/setup_environment_variables.sh && ${SELF_BUILD_SCRIPT_DIR}/checkout_and_build_syslog_ng_incubator.sh

CMD ["/opt/syslog-ng/sbin/syslog-ng", "-Fedv"]

Add "--disable-systemd" configure option to syslogng36 centos build

# generated image name from this dockerfile: centos_syslog_ng_dev_36
FROM balabit/centos_base_for_syslog_ng:latest
MAINTAINER Andras Mitzki <andras.mitzki@balabit.com>

ENV BRANCH_NAME="3.6/master"
ENV OTHER_CONFIGURE_OPTS="--disable-systemd"
RUN . ${SELF_BUILD_SCRIPT_DIR}/setup_environment_variables.sh && ${SELF_BUILD_SCRIPT_DIR}/checkout_and_build_syslog_ng.sh

ENV INCUBATOR_BRANCH_NAME="master"
RUN . ${SELF_BUILD_SCRIPT_DIR}/setup_environment_variables.sh && ${SELF_BUILD_SCRIPT_DIR}/checkout_and_build_syslog_ng_incubator.sh

CMD ["/opt/syslog-ng/sbin/syslog-ng", "-Fedv"]


# $FreeBSD$
PROG= ncal
SRCS= ncal.c

CFLAGS+=	-Wall -Wmissing-prototypes -fstrict-prototypes -ansi -pedantic

DPADD+=		${LIBCALENDAR}
LDADD+=		-lcalendar

LINKS=		${BINDIR}/ncal ${BINDIR}/cal
MLINKS=		ncal.1 cal.1

.include <bsd.prog.mk>

Remove gcc specific compiler flags, at least one of which doesn't work with gcc 3.0.2. (-fstrict-prototypes)

# $FreeBSD$
PROG= ncal
SRCS= ncal.c

DPADD+=		${LIBCALENDAR}
LDADD+=		-lcalendar

LINKS=		${BINDIR}/ncal ${BINDIR}/cal
MLINKS=		ncal.1 cal.1

.include <bsd.prog.mk>


FROM golang:1.10

WORKDIR /go/src/github.com/rliebz/tusk

RUN go get github.com/alecthomas/gometalinter && gometalinter --install
RUN go get github.com/jstemmer/go-junit-report
RUN apt-get update && \
      apt-get -y install rpm && \
      curl -sL https://git.io/goreleaser > /tmp/goreleaser && \
      chmod +x /tmp/goreleaser && \
      mv /tmp/goreleaser /usr/local/bin
RUN apt-get update && \
      apt-get install -y python-pip python-dev build-essential && \
      pip install --no-cache-dir mkdocs==0.17.3 mkdocs-cinder==0.11.0

CMD [ "bash" ]

Update ci docker image python dependencies

FROM golang:1.10

WORKDIR /go/src/github.com/rliebz/tusk

RUN go get github.com/alecthomas/gometalinter && gometalinter --install
RUN go get github.com/jstemmer/go-junit-report
RUN apt-get update && \
      apt-get -y install rpm && \
      curl -sL https://git.io/goreleaser > /tmp/goreleaser && \
      chmod +x /tmp/goreleaser && \
      mv /tmp/goreleaser /usr/local/bin
RUN apt-get update && \
      apt-get install -y python-pip && \
      pip install --no-cache-dir \
      mkdocs==0.17.3 \
      mkdocs-cinder==0.11.0 \
      Pygments==2.2.0

CMD [ "bash" ]


## A tribute to Dynamic!
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "33331")
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS "33331")

Reduce maximum number of warnings/errors. (they took GBs even for limited period of time)

set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "2000")
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS   "2000")


if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
  message(FATAL_ERROR "Cannot find install manifest: @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")

file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
string(REGEX REPLACE "\n" ";" files "${files}")
foreach(file ${files})
  message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
  if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
    exec_program(
      "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
      OUTPUT_VARIABLE rm_out
      RETURN_VALUE rm_retval
      )
    if(NOT "${rm_retval}" STREQUAL 0)
      message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
    endif(NOT "${rm_retval}" STREQUAL 0)
  else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
    message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
  endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
endforeach(file)

Use execute_process instead of deprecated exec_program, and doesn't use unnecessary IS_SYMLINK.

if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
  message(FATAL_ERROR "Cannot find install manifest: @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")

file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
string(REGEX REPLACE "\n" ";" files "${files}")
foreach(file ${files})
  message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
  if(EXISTS "$ENV{DESTDIR}${file}")
    execute_process(
      COMMAND @CMAKE_COMMAND@ -E remove "$ENV{DESTDIR}${file}"
      OUTPUT_VARIABLE rm_out
      RESULT_VARIABLE rm_retval
      )
    if(NOT "${rm_retval}" STREQUAL 0)
      message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
    endif(NOT "${rm_retval}" STREQUAL 0)
  else(EXISTS "$ENV{DESTDIR}${file}")
    message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
  endif(EXISTS "$ENV{DESTDIR}${file}")
endforeach(file)


# $Id: Makefile,v 1.4 1995/02/03 22:01:17 wpaul Exp $
# From:	@(#)Makefile	8.3 (Berkeley) 4/2/94

PROG=	ypserv
SRCS=	dnslookup.c yp_svc.c yp_xdr.c server.c

CFLAGS+=-Wall -DTCP_WRAPPER=0 -DTCPW_FACILITY=LOG_AUTH
CFLAGS+=-DINSTDIR='"/usr/libexec"'

MAN8= ypserv.8

afterinstall: /var/yp/Makefile /usr/libexec/mknetid

/var/yp/Makefile: ${.CURDIR}/Makefile.yp
        @if [ ! -d /var/yp ]; then mkdir /var/yp; fi
	install -c -o bin -g bin -m 444 ${.CURDIR}/Makefile.yp /var/yp/Makefile

/usr/libexec/mknetid: ${.CURDIR}/mknetid
	install -c -o bin -g bin -m 555 ${.CURDIR}/mknetid /usr/libexec/mknetid

.include <bsd.prog.mk>

Fix losing Makefile so that it properly honors DESTDIR when installing /var/yp/Makefile and /usr/libexec/mknetid. *grumble* *mutter* *mutter*

# $Id: Makefile,v 1.5 1995/02/04 21:31:58 wpaul Exp $
# From:	@(#)Makefile	8.3 (Berkeley) 4/2/94

PROG=	ypserv
SRCS=	dnslookup.c yp_svc.c yp_xdr.c server.c

CFLAGS+=-Wall -DTCP_WRAPPER=0 -DTCPW_FACILITY=LOG_AUTH
CFLAGS+=-DINSTDIR='"/usr/libexec"'

MAN8= ypserv.8

afterinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
		${.CURDIR}/Makefile.yp \
		${DESTDIR}/var/yp/Makefile
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${.CURDIR}/mknetid \
		${DESTDIR}/usr/libexec/mknetid

.include <bsd.prog.mk>


# $Id$
#

PROG=	ld
SRCS=	ld.c symbol.c lib.c shlib.c warnings.c support.c rrs.c xbits.c md.c cplus-dem.c
CFLAGS += -I$(.CURDIR) -I$(.CURDIR)/$(MACHINE) -I$(GCCDIR) -DIN_GCC -DDEMANGLE_CPLUSPLUS
LDFLAGS+= -Xlinker -Bstatic

GCCDIR=	${.CURDIR}/../../../contrib/gcc

SUBDIR=       ldconfig ldd
.if !defined(NOPIC)
SUBDIR+= rtld
.endif

.PATH: $(.CURDIR)/$(MACHINE) $(GCCDIR)

.include <bsd.prog.mk>

Configure static linkage in the normal way (default to -static using NOSHARED?= yes).

# $Id: Makefile,v 1.21 1997/02/22 15:46:17 peter Exp $
#

PROG=	ld
SRCS=	ld.c symbol.c lib.c shlib.c warnings.c support.c rrs.c xbits.c md.c \
	cplus-dem.c
CFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/$(MACHINE) \
	-I$(GCCDIR) -DIN_GCC -DDEMANGLE_CPLUSPLUS
NOSHARED?= yes

GCCDIR=	${.CURDIR}/../../../contrib/gcc

SUBDIR=       ldconfig ldd
.if !defined(NOPIC)
SUBDIR+= rtld
.endif

.PATH: $(.CURDIR)/$(MACHINE) $(GCCDIR)

.include <bsd.prog.mk>


FROM golang:1.12.1-alpine3.9
MAINTAINER Monax <support@monax.io>

ENV DOCKER_VERSION "17.12.1-ce"
ENV GORELEASER_VERSION "v0.104.1"
# This is the image used by the Circle CI config
# Update remote with 'make push_ci_image'
RUN apk add --update --no-cache \
 nodejs \
 npm \
 netcat-openbsd \
 git \
 openssh-client \
 openssl \
 make \
 bash \
 gcc \
 g++ \
 jq \
 curl \
 docker \
 libffi-dev \
 openssl-dev \
 python-dev \
 py-pip
RUN pip install docker-compose
# get docker client
WORKDIR /usr/bin
RUN curl -sS -L https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz | tar xz --strip-components 1 docker/docker
RUN curl -sS -L https://github.com/goreleaser/goreleaser/releases/download/$GORELEASER_VERSION/goreleaser_Linux_x86_64.tar.gz | tar xz goreleaser
RUN npm install -g mocha
RUN npm install -g mocha-circleci-reporter
ENV CI=true
# Protobuf builds require being in GOPATH (more or less) but this disables module support by default
ENV GO111MODULE=on
WORKDIR /go/src/github.com/hyperledger/burrow

Update CI image to newer Go

FROM golang:1.12.6-alpine3.10
MAINTAINER Monax <support@monax.io>

ENV DOCKER_VERSION "17.12.1-ce"
ENV GORELEASER_VERSION "v0.104.1"
# This is the image used by the Circle CI config
# Update remote with 'make push_ci_image'
RUN apk add --update --no-cache \
 nodejs \
 npm \
 netcat-openbsd \
 git \
 openssh-client \
 openssl \
 make \
 bash \
 gcc \
 g++ \
 jq \
 curl \
 docker \
 libffi-dev \
 openssl-dev \
 python-dev \
 py-pip
RUN pip install docker-compose
# get docker client
WORKDIR /usr/bin
RUN curl -sS -L https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz | tar xz --strip-components 1 docker/docker
RUN curl -sS -L https://github.com/goreleaser/goreleaser/releases/download/$GORELEASER_VERSION/goreleaser_Linux_x86_64.tar.gz | tar xz goreleaser
RUN npm install -g mocha
RUN npm install -g mocha-circleci-reporter
ENV CI=true
# Protobuf builds require being in GOPATH (more or less) but this disables module support by default
ENV GO111MODULE=on
WORKDIR /go/src/github.com/hyperledger/burrow


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="PHPUnit">
          <directory>tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory>src/Gliph</directory>
        </whitelist>
    </filter>

    <logging>
        <log
            type="coverage-html"
            target="build/coverage"
            charset="UTF-8"
            yui="true"
            highlight="true"
            lowUpperBound="35"
            highLowerBound="70"
            showUncoveredFiles="true"
            />
          <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>

Exclude the no-op DF visitor from coverage.

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="PHPUnit">
          <directory>tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
          <directory>src/Gliph</directory>
            <exclude>
                <file>src/Gliph/Visitor/DepthFirstNoOpVisitor.php</file>
            </exclude>
        </whitelist>
    </filter>

    <logging>
        <log
            type="coverage-html"
            target="build/coverage"
            charset="UTF-8"
            yui="true"
            highlight="true"
            lowUpperBound="35"
            highLowerBound="70"
            showUncoveredFiles="true"
            />
          <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>