<?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"
>

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

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

Adjust error_reporting to allow deprecation messages for 3.0

<?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>
        <!-- Disable E_USER_DEPRECATED until 3.0 -->
        <!-- php -r 'echo -1 & ~E_USER_DEPRECATED;' -->
        <ini name="error_reporting" value="-16385"/>
    </php>

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

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


<?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/bootstrap.php.cache" >
  <testsuites>
    <testsuite name="Graviton Test Suite">
      <directory>src/*/*Bundle/Tests</directory>
      <directory>src/*/Bundle/*Bundle/Tests</directory>
    </testsuite>
  </testsuites>
  <filter>
    <whitelist>
      <directory>src</directory>
      <exclude>
        <directory>src/*/*Bundle/Tests</directory>
        <directory>src/*/*Bundle/*Bundle/Tests</directory>
        <directory>src/*/*Bundle/Resources</directory>
        <directory>src/*/Bundle/*Bundle/Resources</directory>
        <directory>src/*/Bundle/DependencyInjection</directory>
        <directory>src/GravitonDyn</directory>
      </exclude>
    </whitelist>
  </filter>
  <php>
    <ini name="error_reporting" value="E_ALL"/>
  </php>
  <listeners>
    <listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener" />
  </listeners>
</phpunit>

Allow deeper recursions in phpunit

<?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/bootstrap.php.cache" >
  <testsuites>
    <testsuite name="Graviton Test Suite">
      <directory>src/*/*Bundle/Tests</directory>
      <directory>src/*/Bundle/*Bundle/Tests</directory>
    </testsuite>
  </testsuites>
  <filter>
    <whitelist>
      <directory>src</directory>
      <exclude>
        <directory>src/*/*Bundle/Tests</directory>
        <directory>src/*/*Bundle/*Bundle/Tests</directory>
        <directory>src/*/*Bundle/Resources</directory>
        <directory>src/*/Bundle/*Bundle/Resources</directory>
        <directory>src/*/Bundle/DependencyInjection</directory>
        <directory>src/GravitonDyn</directory>
      </exclude>
    </whitelist>
  </filter>
  <php>
    <ini name="error_reporting" value="E_ALL"/>
    <ini name="xdebug.max_nesting_level" value="200"/>
  </php>
  <listeners>
    <listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener" />
  </listeners>
</phpunit>


<?xml version="1.0"?>
<ruleset name="phpDocumentor">
 <description>The coding standard for phpDocumentor.</description>

    <file>src</file>
    <file>tests/unit</file>
    <exclude-pattern>*/tests/unit/Types/ContextFactoryTest.php</exclude-pattern>
    <arg value="p"/>

    <rule ref="phpDocumentor">
    </rule>

    <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix">
        <exclude-pattern>*/src/*/Abstract*.php</exclude-pattern>
    </rule>
</ruleset>

Disable phpcs sniff for BC compat

<?xml version="1.0"?>
<ruleset name="phpDocumentor">
    <description>The coding standard for phpDocumentor.</description>

    <file>src</file>
    <file>tests/unit</file>
    <exclude-pattern>*/tests/unit/Types/ContextFactoryTest.php</exclude-pattern>
    <arg value="p"/>

    <rule ref="phpDocumentor">
    </rule>

    <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix">
        <exclude-pattern>*/src/*/Abstract*.php</exclude-pattern>
    </rule>

    <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
        <exclude-pattern>*/src/PseudoTypes/False_.php</exclude-pattern>
        <exclude-pattern>*/src/PseudoTypes/True_.php</exclude-pattern>
    </rule>
</ruleset>


# Build app
FROM node:10.12-alpine as app

WORKDIR /usr/src/app/

# By doing this separate we allow Docker to cache this
COPY package.json package-lock.json /usr/src/app/
RUN npm install

COPY . /usr/src/app/
RUN npm run build

# Build server
FROM node:10.12-alpine as server

WORKDIR /usr/src/app/

# By doing this separate we allow Docker to cache this
COPY server/package.json server/package-lock.json /usr/src/app/
RUN npm install

COPY server/ /usr/src/app/

RUN npm install
RUN npm run build
RUN npm prune --production

# Combine
FROM node:10.12-alpine

COPY --from=app /usr/src/app/build/ /usr/src/app/build/
COPY --from=server /usr/src/app/build/ /usr/src/app/
COPY --from=server /usr/src/app/node_modules/ /usr/src/app/node_modules/
WORKDIR /usr/src/app/

ENV NODE_ENV=production
ENV PORT=80
EXPOSE 80
USER node

CMD node_modules/.bin/sequelize db:migrate && node --harmony index.js

Use port 3000 since 80 requires extra perms

# Build app
FROM node:10.12-alpine as app

WORKDIR /usr/src/app/

# By doing this separate we allow Docker to cache this
COPY package.json package-lock.json /usr/src/app/
RUN npm install

COPY . /usr/src/app/
RUN npm run build

# Build server
FROM node:10.12-alpine as server

WORKDIR /usr/src/app/

# By doing this separate we allow Docker to cache this
COPY server/package.json server/package-lock.json /usr/src/app/
RUN npm install

COPY server/ /usr/src/app/

RUN npm install
RUN npm run build
RUN npm prune --production

# Combine
FROM node:10.12-alpine

COPY --from=app /usr/src/app/build/ /usr/src/app/build/
COPY --from=server /usr/src/app/build/ /usr/src/app/
COPY --from=server /usr/src/app/node_modules/ /usr/src/app/node_modules/
WORKDIR /usr/src/app/

ENV NODE_ENV=production
ENV PORT=3000
EXPOSE 3000
USER node

CMD node_modules/.bin/sequelize db:migrate && node --harmony index.js


#  PYSIDE_INCLUDE_DIR   - Directories to include to use PySide
#  PYSIDE_LIBRARY       - Files to link against to use PySide
#  PYSIDE_PYTHONPATH    - Path to where the PySide Python module files could be found
#  PYSIDE_TYPESYSTEMS   - Type system files that should be used by other bindings extending PySide

SET(PYSIDE_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/PySide@pyside_SUFFIX@")
SET(PYSIDE_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@pyside@pyside_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@")
SET(PYSIDE_PYTHONPATH "@SITE_PACKAGE@")
SET(PYSIDE_TYPESYSTEMS "@CMAKE_INSTALL_PREFIX@/share/PySide@pyside_SUFFFIX@/typesystems")

Fix typo on Cmake files.

#  PYSIDE_INCLUDE_DIR   - Directories to include to use PySide
#  PYSIDE_LIBRARY       - Files to link against to use PySide
#  PYSIDE_PYTHONPATH    - Path to where the PySide Python module files could be found
#  PYSIDE_TYPESYSTEMS   - Type system files that should be used by other bindings extending PySide

SET(PYSIDE_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/PySide@pyside_SUFFIX@")
SET(PYSIDE_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@pyside@pyside_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@-@SHIBOKEN_PYTHON_BASENAME@@CMAKE_SHARED_LIBRARY_SUFFIX@")
SET(PYSIDE_PYTHONPATH "@SITE_PACKAGE@")
SET(PYSIDE_TYPESYSTEMS "@CMAKE_INSTALL_PREFIX@/share/PySide@pyside_SUFFIX@/typesystems")


from flavio/opensuse-12-3
MAINTAINER SaltStack, Inc.

# Install the Python repository
RUN zypper --non-interactive addrepo --refresh http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_12.3/devel:languages:python.repo

# Refresh repositories
RUN zypper --gpg-auto-import-keys --non-interactive refresh

# Because patterns-openSUSE-minimal_base-conflicts conflicts with python, lets remove the first one
RUN zypper --non-interactive remove patterns-openSUSE-minimal_base-conflicts

# Update System
RUN zypper --gpg-auto-import-keys --non-interactive update

# Install Salt Dependencies
RUN zypper --non-interactive install --auto-agree-with-licenses libzmq3
RUN zypper --non-interactive install --auto-agree-with-licenses python
RUN zypper --non-interactive install --auto-agree-with-licenses python-Jinja2
RUN zypper --non-interactive install --auto-agree-with-licenses python-M2Crypto
RUN zypper --non-interactive install --auto-agree-with-licenses python-PyYAML
RUN zypper --non-interactive install --auto-agree-with-licenses python-msgpack-python
RUN zypper --non-interactive install --auto-agree-with-licenses python-pycrypto
RUN zypper --non-interactive install --auto-agree-with-licenses python-pyzmq
RUN zypper --non-interactive install --auto-agree-with-licenses python-xml

Reduce the number of steps

from flavio/opensuse-12-3
MAINTAINER SaltStack, Inc.

# Install the Python repository & Refresh repositories
RUN zypper --non-interactive addrepo --refresh \
  http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_12.3/devel:languages:python.repo && \
  zypper --gpg-auto-import-keys --non-interactive refresh

# Because patterns-openSUSE-minimal_base-conflicts conflicts with python, lets remove the first one
RUN zypper --non-interactive remove patterns-openSUSE-minimal_base-conflicts

# Update System
RUN zypper --gpg-auto-import-keys --non-interactive update

# Install Salt Dependencies
RUN zypper --non-interactive install --auto-agree-with-licenses \
  libzmq3 \
  python \
  python-Jinja2 \
  python-M2Crypto \
  python-PyYAML \
  python-msgpack-python \
  python-pycrypto \
  python-pyzmq \
  python-xml


# $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
SCRIPTS=lesspipe.sh zless
SCRIPTSNAME_lesspipe.sh=lesspipe.sh
DPADD=	${LIBTERMCAP}
LDADD=	-ltermcap
LINKS=	${BINDIR}/less ${BINDIR}/more \
	${BINDIR}/zless ${BINDIR}/bzless
MLINKS=	less.1 more.1
CLEANFILES= less.1

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

Correct the script name to be "zless.sh". This avoids an extra cp/chmod (from the sys.mk rule) while still installing it under the "zless" name.

# $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
SCRIPTS=lesspipe.sh zless.sh
SCRIPTSNAME_lesspipe.sh=lesspipe.sh
DPADD=	${LIBTERMCAP}
LDADD=	-ltermcap
LINKS=	${BINDIR}/less ${BINDIR}/more \
	${BINDIR}/zless ${BINDIR}/bzless
MLINKS=	less.1 more.1
CLEANFILES= less.1

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


# $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=	${LIBTERMCAP}
LDADD=	-ltermcap
LINKS=	${BINDIR}/less /usr/bin/more
MLINKS=	less.1 more.1
CLEANFILES= less.1

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

Use ${BINDIR} instead of hardcoded path.

# $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=	${LIBTERMCAP}
LDADD=	-ltermcap
LINKS=	${BINDIR}/less ${BINDIR}/more
MLINKS=	less.1 more.1
CLEANFILES= less.1

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


FROM appsvc/rubybase:2.3.3
MAINTAINER Azure App Services Container Images <appsvc-images@microsoft.com>

COPY init_container.sh /bin/
COPY startup.sh /opt/
COPY sshd_config /etc/ssh/
COPY hostingstart.html /home/site/wwwroot/hostingstart.html
COPY staticsite.rb /opt/staticsite.rb

RUN apt-get update -qq \
    && apt-get install -y nodejs openssh-server --no-install-recommends \
    && echo "root:Docker!" | chpasswd

RUN eval "$(rbenv init -)" \
  && rbenv global 2.3.3

RUN chmod 755 /bin/init_container.sh \
  && mkdir -p /home/LogFiles/ \
  && chmod 755 /opt/startup.sh

EXPOSE 2222 8080

ENV PORT 8080
ENV WEBSITE_ROLE_INSTANCE_ID localRoleInstance
ENV WEBSITE_INSTANCE_ID localInstance
ENV PATH ${PATH}:/home/site/wwwroot

WORKDIR /home/site/wwwroot

ENTRYPOINT [ "/bin/init_container.sh" ]

Add debugging tools to image

FROM appsvc/rubybase:2.3.3
MAINTAINER Azure App Services Container Images <appsvc-images@microsoft.com>

COPY init_container.sh /bin/
COPY startup.sh /opt/
COPY sshd_config /etc/ssh/
COPY hostingstart.html /home/site/wwwroot/hostingstart.html
COPY staticsite.rb /opt/staticsite.rb

RUN apt-get update -qq \
    && apt-get install -y nodejs openssh-server vim curl wget tcptraceroute --no-install-recommends \
    && echo "root:Docker!" | chpasswd

RUN eval "$(rbenv init -)" \
  && rbenv global 2.3.3

RUN chmod 755 /bin/init_container.sh \
  && mkdir -p /home/LogFiles/ \
  && chmod 755 /opt/startup.sh

EXPOSE 2222 8080

ENV PORT 8080
ENV WEBSITE_ROLE_INSTANCE_ID localRoleInstance
ENV WEBSITE_INSTANCE_ID localInstance
ENV PATH ${PATH}:/home/site/wwwroot

WORKDIR /home/site/wwwroot

ENTRYPOINT [ "/bin/init_container.sh" ]


FROM python:3.7-slim

WORKDIR /app

COPY ./requirements.txt /app/requirements.txt

# TODO: copy in permanent code run stuff?

RUN pip install -r requirements.txt

# TODO remove requirements.txt?

ENTRYPOINT ["bash"]

# CMD ["src/run.py"]

Set docker image to run continuously

FROM python:3.7-slim

WORKDIR /app

COPY ./requirements.txt /app/requirements.txt

# TODO: copy in permanent code run stuff?

RUN pip install -r requirements.txt

# TODO remove requirements.txt?

# ENTRYPOINT ["bash"]

CMD ["tail", "-f", "/dev/null"]


# ===================================================================================
#  The Tesseract CMake configuration file
#
#             ** File generated automatically, do not modify **
#
#  Usage from an external project:
#    In your CMakeLists.txt, add these lines:
#
#    find_package(Tesseract REQUIRED)
#    target_link_libraries(MY_TARGET_NAME Tesseract::libtesseract)
#
#    This file will define the following variables:
#      - Tesseract_LIBRARIES             : The list of all imported targets for OpenCV modules.
#      - Tesseract_INCLUDE_DIRS          : The Tesseract include directories.
#
# ===================================================================================

include(${CMAKE_CURRENT_LIST_DIR}/tesseract/TesseractTargets.cmake)

find_package(Leptonica REQUIRED)

@PACKAGE_INIT@

set_and_check(Tesseract_INCLUDE_DIR "@PACKAGE_INCLUDE_DIR@")
set(Tesseract_LIBRARIES libtesseract)

check_required_components(Tesseract)

Use find_dependency instead of find_package

# ===================================================================================
#  The Tesseract CMake configuration file
#
#             ** File generated automatically, do not modify **
#
#  Usage from an external project:
#    In your CMakeLists.txt, add these lines:
#
#    find_package(Tesseract REQUIRED)
#    target_link_libraries(MY_TARGET_NAME Tesseract::libtesseract)
#
#    This file will define the following variables:
#      - Tesseract_LIBRARIES             : The list of all imported targets for OpenCV modules.
#      - Tesseract_INCLUDE_DIRS          : The Tesseract include directories.
#
# ===================================================================================

include(CMakeFindDependencyMacro)
find_dependency(Leptonica)

include(${CMAKE_CURRENT_LIST_DIR}/tesseract/TesseractTargets.cmake)

@PACKAGE_INIT@

set_and_check(Tesseract_INCLUDE_DIR "@PACKAGE_INCLUDE_DIR@")
set(Tesseract_LIBRARIES libtesseract)

check_required_components(Tesseract)


FROM ubuntu:20.04

# set an encoding to make things work smoothly.
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# set timezone
ENV TZ=Europe/London

ARG DEBIAN_FRONTEND=noninteractive
RUN apt --yes -qq update \
 && apt --yes -qq upgrade \
 && apt --yes -qq install \
                  bzip2 \
                  cpio \
                  curl \
                  g++ \
                  gcc \
                  gfortran \
                  git \
                  libblas-dev \
                  libhdf5-dev \
                  libidn11-dev \
                  liblapack-dev \
                  liblua5.3-dev \
                  libopenmpi-dev \
                  libpython3-all-dev \
                  libscalapack-openmpi-dev \
                  lua5.3 \
                  openmpi-bin \
                  pkg-config \
                  python3-dev \
                  python3-pip \
                  python3-tk \
                  uuid-dev \
 && rm -rf /var/lib/apt/lists/*

# run common commands
COPY run_commands /opt/docker/bin/run_commands
RUN /opt/docker/bin/run_commands

ENV PATH $PATH:/root/.local/bin

ENV LD_LIBRARY_PATH /root/.local/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

SHELL ["/bin/bash"]

Install CMake in Docker image

FROM ubuntu:20.04

# set an encoding to make things work smoothly.
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# set timezone
ENV TZ=Europe/London

ARG DEBIAN_FRONTEND=noninteractive
RUN apt --yes -qq update \
 && apt --yes -qq upgrade \
 && apt --yes -qq install \
                  bzip2 \
                  cmake \
                  cpio \
                  curl \
                  g++ \
                  gcc \
                  gfortran \
                  git \
                  libblas-dev \
                  libhdf5-dev \
                  libidn11-dev \
                  liblapack-dev \
                  liblua5.3-dev \
                  libopenmpi-dev \
                  libpython3-all-dev \
                  libscalapack-openmpi-dev \
                  lua5.3 \
                  openmpi-bin \
                  pkg-config \
                  python3-dev \
                  python3-pip \
                  python3-tk \
                  uuid-dev \
 && rm -rf /var/lib/apt/lists/*

# run common commands
COPY run_commands /opt/docker/bin/run_commands
RUN /opt/docker/bin/run_commands

ENV PATH $PATH:/root/.local/bin

ENV LD_LIBRARY_PATH /root/.local/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

SHELL ["/bin/bash"]


# $Id$

PROG=	yp_mkdb
SRCS=	yp_mkdb.c yp_dblookup.c yp_dbwrite.c

MAN8=	yp_mkdb.8

.PATH:	${.CURDIR}/../../libexec/ypxfr ${.CURDIR}/../ypserv

CFLAGS+= -Dyp_error=warnx
CFLAGS+= -I${.CURDIR}/../../usr.sbin/ypserv

.include <bsd.prog.mk>

Add -I${.CURDIR}/../../libexec/ypxfr to CFLAGS so we can see ypxfr_extern.h.

# $Id: Makefile,v 1.1.1.1 1996/04/28 04:16:05 wpaul Exp $

PROG=	yp_mkdb
SRCS=	yp_mkdb.c yp_dblookup.c yp_dbwrite.c

MAN8=	yp_mkdb.8

.PATH:	${.CURDIR}/../../libexec/ypxfr ${.CURDIR}/../ypserv

CFLAGS+= -Dyp_error=warnx -I${.CURDIR}/../../libexec/ypxfr
CFLAGS+= -I${.CURDIR}/../../usr.sbin/ypserv

.include <bsd.prog.mk>


# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:stretch

RUN apt-get update && apt-get install -y \
  build-essential autoconf libtool git pkg-config curl \
  automake libtool curl make g++ unzip \
  && apt-get clean

# install protobuf first, then grpc
ENV GRPC_RELEASE_TAG v1.8.x
RUN git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc /var/local/git/grpc && \
		cd /var/local/git/grpc && \
    git submodule update --init && \
    echo "--- installing protobuf ---" && \
    cd third_party/protobuf && \
    ./autogen.sh && ./configure --enable-shared && \
    make -j && make -j check && make install && make clean && ldconfig && \
    echo "--- installing grpc ---" && \
    cd /var/local/git/grpc && \
    make -j && make install && make clean && ldconfig

Fix Bug: Need a limit on the -j parellisation

# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:stretch

RUN apt-get update && apt-get install -y \
  build-essential autoconf libtool git pkg-config curl \
  automake libtool curl make g++ unzip \
  && apt-get clean

# install protobuf first, then grpc
ENV GRPC_RELEASE_TAG v1.8.x
RUN git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc /var/local/git/grpc && \
		cd /var/local/git/grpc && \
    git submodule update --init && \
    echo "--- installing protobuf ---" && \
    cd third_party/protobuf && \
    ./autogen.sh && ./configure --enable-shared && \
    make -j$(nproc) && make -j$(nproc) check && make install && make clean && ldconfig && \
    echo "--- installing grpc ---" && \
    cd /var/local/git/grpc && \
    make -j$(nproc) && make install && make clean && ldconfig


<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
 <description>The coding standard for fennec-web PHP files.</description>

 <file>src/webservice</file>

 <arg name="report" value="summary"/>
 <arg value="p"/>

 <rule ref="PSR2"/>
</ruleset>

Add test files to php_codesniff path

<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
 <description>The coding standard for fennec-web PHP files.</description>

 <file>src/webservice</file>
 <file>test/php</file>

 <arg name="report" value="summary"/>
 <arg value="p"/>

 <rule ref="PSR2"/>
</ruleset>


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

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="./tests/bootstrap.php">

    <php>
        <ini name="error_reporting" value="-1"/>
        <ini name="memory_limit" value="-1"/>
        <ini name="apc.enable_cli" value="1"/>
        <ini name="opcache.enable_cli" value="1"/>
    </php>

    <testsuites>
        <testsuite name="KumbiaPHP Framework Core Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>

    <listeners>
        <listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
    </listeners>

    <!-- Ignore vendor tests in code coverage reports -->
    <coverage>
        <exclude>
            <directory suffix=".php">./tests</directory>
            <directory suffix=".php">../../vendor</directory>
        </exclude>
    </coverage>
</phpunit>

Add verbose to phpunit config in core

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

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         verbose="true"
         bootstrap="./tests/bootstrap.php">

    <php>
        <ini name="error_reporting" value="-1"/>
        <ini name="memory_limit" value="-1"/>
        <ini name="apc.enable_cli" value="1"/>
        <ini name="opcache.enable_cli" value="1"/>
    </php>

    <testsuites>
        <testsuite name="KumbiaPHP Framework Core Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>

    <listeners>
        <listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
    </listeners>

    <!-- Ignore vendor tests in code coverage reports -->
    <coverage>
        <exclude>
            <directory suffix=".php">./tests</directory>
            <directory suffix=".php">../../vendor</directory>
        </exclude>
    </coverage>
</phpunit>


FROM zooniverse/passenger

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get -y -q install build-essential libsqlite3-dev libcurl3 libxml2 libxslt1-dev libcurl4-gnutls-dev git-core mysql-client libmysqlclient-dev imagemagick libmagickwand-dev memcached zlib1g zlib1g-dev wget libyaml-dev bison libssl-dev libreadline6-dev autoconf subversion curl && \
    wget -q -O ruby-1.8.7-p370.tar.gz http://cache.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p370.tar.gz && \
    tar xvf ruby-1.8.7-p370.tar.gz && \
    rm ruby-1.8.7-p370.tar.gz && \
    cd ruby-1.8.7-p370 && \
    ./configure && make && make install && \
    cd .. && rm -rf ruby-1.8.7-p370 && \
    wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.22.tgz && \
    tar -xvzf rubygems-1.8.22.tgz && \
    cd rubygems-1.8.22 && \
    ruby setup.rb && \
    gem update --system 1.7.2 && \
    gem install bundler

Change default ruby with update-alternatives.

FROM zooniverse/passenger

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get -y -q install build-essential libsqlite3-dev libcurl3 libxml2 libxslt1-dev libcurl4-gnutls-dev git-core mysql-client libmysqlclient-dev imagemagick libmagickwand-dev memcached zlib1g zlib1g-dev wget libyaml-dev bison libssl-dev libreadline6-dev autoconf subversion curl && \
    wget -q -O ruby-1.8.7-p370.tar.gz http://cache.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p370.tar.gz && \
    tar xvf ruby-1.8.7-p370.tar.gz && \
    rm ruby-1.8.7-p370.tar.gz && \
    cd ruby-1.8.7-p370 && \
    ./configure && make && make install && \
    cd .. && rm -rf ruby-1.8.7-p370 && \
    update-alternatives --install /usr/bin/ruby ruby /usr/local/bin/ruby 99 && \
    wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.22.tgz && \
    tar -xvzf rubygems-1.8.22.tgz && \
    cd rubygems-1.8.22 && \
    ruby setup.rb && \
    gem update --system 1.7.2 && \
    gem install bundler


SET(HDF5_EXTRA_FLAGS "@HDF5_EXTRA_FLAGS@")
INCLUDE_DIRECTORIES("@HDF5_MPI_INCLUDE_PATH@")

Make sure include is not used when VTK_USE_MPI is off

SET(HDF5_EXTRA_FLAGS "@HDF5_EXTRA_FLAGS@")
IF (VTK_USE_MPI)
  INCLUDE_DIRECTORIES("@HDF5_MPI_INCLUDE_PATH@")
ENDIF (VTK_USE_MPI)


FROM centos:6

MAINTAINER Phil Elson <pelson.pub@gmail.com>

ENV LANG en_US.UTF-8

RUN echo "exclude=*.i386 *.i686" >> /etc/yum.conf && \
    yum update -y && \
    yum install -y \
                   bzip2 \
                   gcc-c++ \
                   git \
                   make \
                   patch \
                   tar \
                   wget \
                   which \
                   libXext \
                   libXrender \
                   libSM \
                   libX11-devel && \
    yum clean all

RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh --no-verbose && \
    bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && rm Miniconda*.sh && \
    export PATH=/opt/conda/bin:$PATH && \
    conda config --set show_channel_urls True && \
    conda update --all --yes && conda clean -tipsy

RUN export PATH=/opt/conda/bin:$PATH && \
    conda install --yes -c pelson/channel/development obvious-ci && \
    obvci_install_conda_build_tools.py

# udunits2.
# libtool texinfo
# RUN yum install -y expat-devel

ENV PATH /opt/conda/bin:$PATH

Use `curl` included and drop `wget`.

FROM centos:6

MAINTAINER Phil Elson <pelson.pub@gmail.com>

ENV LANG en_US.UTF-8

RUN echo "exclude=*.i386 *.i686" >> /etc/yum.conf && \
    yum update -y && \
    yum install -y \
                   bzip2 \
                   gcc-c++ \
                   git \
                   make \
                   patch \
                   tar \
                   which \
                   libXext \
                   libXrender \
                   libSM \
                   libX11-devel && \
    yum clean all

RUN curl -s -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
    bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && rm Miniconda*.sh && \
    export PATH=/opt/conda/bin:$PATH && \
    conda config --set show_channel_urls True && \
    conda update --all --yes && conda clean -tipsy

RUN export PATH=/opt/conda/bin:$PATH && \
    conda install --yes -c pelson/channel/development obvious-ci && \
    obvci_install_conda_build_tools.py

# udunits2.
# libtool texinfo
# RUN yum install -y expat-devel

ENV PATH /opt/conda/bin:$PATH


# $FreeBSD$
# Original revision: 1.6

RELN_ROOT?= ${.CURDIR}/../../..

DOC?= article
FORMATS?= html
INSTALL_COMPRESSED?= gz
INSTALL_ONLY_COMPRESSED?=

JADEFLAGS+=	-V %generate-article-toc%

# SGML content
SRCS+=	article.sgml
SRCS+=	proc-alpha.sgml
SRCS+=	../common/hw.ent
SRCS+=	../common/artheader.sgml
SRCS+=	../common/dev.sgml

.include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

Comment out proc-alpha.sgml's line temporarily.

# $FreeBSD$
# Original revision: 1.6

RELN_ROOT?= ${.CURDIR}/../../..

DOC?= article
FORMATS?= html
INSTALL_COMPRESSED?= gz
INSTALL_ONLY_COMPRESSED?=

JADEFLAGS+=	-V %generate-article-toc%

# SGML content
SRCS+=	article.sgml
#SRCS+=	proc-alpha.sgml
SRCS+=	../common/hw.ent
SRCS+=	../common/artheader.sgml
SRCS+=	../common/dev.sgml

.include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
.include "${DOC_PREFIX}/share/mk/doc.project.mk"


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="Google Analytics Measurement Protocol Client Test Suite">
            <directory>tests/Krizon/Google/Analytics/MeasurementProtocol/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/Krizon/Google/Analytics/MeasurementProtocol/</directory>
        </whitelist>
    </filter>
    <php>
        <var name="tracking_id" value="UA-XXXXXX-X"/>
    </php>
    <groups>
        <exclude>
            <group>internet</group>
        </exclude>
    </groups>
</phpunit>

Fix import tracking_id env variable

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="Google Analytics Measurement Protocol Client Test Suite">
            <directory>tests/Krizon/Google/Analytics/MeasurementProtocol/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/Krizon/Google/Analytics/MeasurementProtocol/</directory>
        </whitelist>
    </filter>
    <php>
        <env name="tracking_id" value="UA-XXXXXX-X"/>
    </php>
    <groups>
        <exclude>
            <group>internet</group>
        </exclude>
    </groups>
</phpunit>


<?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="true"
        bootstrap="Tests/bootstrap.php">

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

Add filter so that code coverage displays correctly

<?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="true"
        bootstrap="Tests/bootstrap.php">

    <testsuites>
        <testsuite name="Project Test Suite">
            <directory>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"
         syntaxCheck="false"
         bootstrap="Tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="ContactBundle Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <php>
        <server name="KERNEL_CLASS" value="AppKernel" />
    </php>

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

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

Add KERNEL_DIR for testing Symfony 2.8

<?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="ContactBundle Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <php>
        <server name="KERNEL_CLASS" value="AppKernel" />
        <server name="KERNEL_DIR" value="./Tests/Fixtures/App/app/" />
    </php>

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

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


<?xml version="1.0" encoding="utf-8"?>
<phpunit backupGlobals="false"
         colors="true"
         bootstrap="./tests/TestInit.php"
        >

    <testsuites>
        <testsuite>
            <directory>./tests/CrEOF/Geo/String/Tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <blacklist>
            <directory suffix=".php">./vendor</directory>
        </blacklist>
    </filter>
</phpunit>

Add schema, fix conformance issues, use composer autoload

<?xml version="1.0" encoding="utf-8"?>
<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.2/phpunit.xsd"
        backupGlobals="false"
        colors="true"
        bootstrap="./vendor/autoload.php"
        >

    <testsuites>
        <testsuite name="Tests">
            <directory>./tests/CrEOF/Geo/String/Tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">lib</directory>
            <exclude>
                <directory>tests</directory>
                <directory>vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
         bootstrap="./vendor/autoload.php"
         colors="true">
    <testsuites>
        <testsuite name="zend-view Test Suite">
            <directory>./test/</directory>
        </testsuite>
    </testsuites>

    <groups>
        <exclude>
            <group>disable</group>
        </exclude>
    </groups>

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

    <php>
        <ini name="date.timezone" value="UTC"/>

        <!-- OB_ENABLED should be enabled for some tests to check if all
             functionality works as expected. Such tests include those for
             Zend\Soap and Zend\Session, which require that headers not be sent
             in order to work. -->
        <env name="TESTS_ZEND_OB_ENABLED" value="false" />

    </php>
</phpunit>

Increase execution time for PHPUnit code coverage

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
         bootstrap="./vendor/autoload.php"
         colors="true">
    <testsuites>
        <testsuite name="zend-view Test Suite">
            <directory>./test/</directory>
        </testsuite>
    </testsuites>

    <groups>
        <exclude>
            <group>disable</group>
        </exclude>
    </groups>

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

    <php>
        <ini name="date.timezone" value="UTC"/>
        <ini name="max_execution_time" value="360"/>

        <!-- OB_ENABLED should be enabled for some tests to check if all
             functionality works as expected. Such tests include those for
             Zend\Soap and Zend\Session, which require that headers not be sent
             in order to work. -->
        <env name="TESTS_ZEND_OB_ENABLED" value="false" />

    </php>
</phpunit>


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

PROG=	yes
WARNS?=	2

.include <bsd.prog.mk>

Remove WARNS=2 as this is to become default.

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

PROG=	yes

.include <bsd.prog.mk>


PROG=	manpath
SRCS=	manpath.c

.if exists(${.CURDIR}/../lib/obj)
LDADD=  -L${.CURDIR}/../lib/obj -lman
.else
LDADD=  -L${.CURDIR}/../lib/ -lman
.endif

.if exists(${.CURDIR}/obj)
MAN1=${.CURDIR}/obj/manpath.1
.else
MAN1=${.CURDIR}/manpath.1
.endif

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

${MAN1}: ${.CURDIR}/manpath.man
	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 bin -g bin -m 555 ${.CURDIR}/manpath.config ${DESTDIR}${manpath_config_file}

.include <bsd.prog.mk>

Stop toasting folks' /etc/manpath.config files.

PROG=	manpath
SRCS=	manpath.c

.if exists(${.CURDIR}/../lib/obj)
LDADD=  -L${.CURDIR}/../lib/obj -lman
.else
LDADD=  -L${.CURDIR}/../lib/ -lman
.endif

.if exists(${.CURDIR}/obj)
MAN1=${.CURDIR}/obj/manpath.1
.else
MAN1=${.CURDIR}/manpath.1
.endif

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

${MAN1}: ${.CURDIR}/manpath.man
	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 bin -g bin -m 555 ${.CURDIR}/manpath.config ${DESTDIR}${manpath_config_file}.sample

.include <bsd.prog.mk>


<?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"
	>

	<filter>
		<whitelist>
			<directory>src/Rocketeer</directory>
			<exclude>
				<file>src/Rocketeer/Console/Commands/AbstractCommand.php</file>
				<file>src/Rocketeer/RocketeerServiceProvider.php</file>
				<directory>src/Rocketeer/Console</directory>
				<directory>src/Rocketeer/Interfaces</directory>
				<directory>src/Rocketeer/Facades</directory>
			</exclude>
		</whitelist>
	</filter>

	<testsuites>
		<testsuite name="Package Test Suite">
			<directory suffix=".php">tests</directory>
		</testsuite>
	</testsuites>

    <listeners>
        <listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener" />
    </listeners>
</phpunit>

Set slow threshold to 200ms

<?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"
>

    <filter>
        <whitelist>
            <directory>src/Rocketeer</directory>
            <exclude>
                <file>src/Rocketeer/Console/Commands/AbstractCommand.php</file>
                <file>src/Rocketeer/RocketeerServiceProvider.php</file>
                <directory>src/Rocketeer/Console</directory>
                <directory>src/Rocketeer/Interfaces</directory>
                <directory>src/Rocketeer/Facades</directory>
            </exclude>
        </whitelist>
    </filter>

    <testsuites>
        <testsuite name="Package Test Suite">
            <directory suffix=".php">tests</directory>
        </testsuite>
    </testsuites>

    <listeners>
        <listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
            <arguments>
                <array>
                    <element key="slowThreshold">
                        <integer>200</integer>
                    </element>
                </array>
            </arguments>
        </listener>
    </listeners>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="Google Analytics Measurement Protocol Client Test Suite">
            <directory>tests/Krizon/Google/Analytics/MeasurementProtocol/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/Krizon/Google/Analytics/MeasurementProtocol/</directory>
        </whitelist>
    </filter>
    <php>
        <var name="tracking_id" value="UA-XXXXXX-X"/>
    </php>
    <exclude>
        <group>internet</group>
    </exclude>
</phpunit>

Fix excluding internet group by default

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="Google Analytics Measurement Protocol Client Test Suite">
            <directory>tests/Krizon/Google/Analytics/MeasurementProtocol/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/Krizon/Google/Analytics/MeasurementProtocol/</directory>
        </whitelist>
    </filter>
    <php>
        <var name="tracking_id" value="UA-XXXXXX-X"/>
    </php>
    <groups>
        <exclude>
            <group>internet</group>
        </exclude>
    </groups>
</phpunit>


[Desktop Entry]
Name=PatchMatrix
Comment=Connect JACK clients together
Exec=@prefix@/@bindir@/patchmatrix
Terminal=false
Icon=patchmatrix
Type=Application
Categories=AudioVideo;Audio;

Add French comment to the menu item file

[Desktop Entry]
Name=PatchMatrix
Comment=Connect JACK clients together
Comment[fr]=Connecter les clients JACK entre eux
Exec=@prefix@/@bindir@/patchmatrix
Terminal=false
Icon=patchmatrix
Type=Application
Categories=AudioVideo;Audio;


# From:	@(#)Makefile	8.1 (Berkeley) 7/19/93
# $Id: Makefile,v 1.10 1994/11/20 23:20:33 wollman Exp $

PROG=	login
MAN1=	login.1
MAN5=	login.access.5
SRCS=	login.c login_access.c login_fbtab.c

CFLAGS+=-DLOGIN_ACCESS -DSKEY -DLOGALL

.if defined(KLOGIN_PARANOID)
CFLAGS+=-DKLOGIN_PARANOID
.endif

DPADD=	${LIBUTIL} ${LIBCRYPT} ${LIBSKEY} ${LIBMD}
LDADD=	-lutil -lcrypt -lskey -lmd

.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_EBONES)
CFLAGS+=-DKERBEROS
SRCS+=	klogin.c
DPADD+=	${LIBKRB} ${LIBDES}
LDADD+=	-lkrb -ldes
DISTRIBUTION=	krb
.endif

BINOWN=	root
BINMODE=4555
INSTALLFLAGS=-fschg

.include <bsd.prog.mk>

Change the library order so libcrypt is the last library in the list. libskey contains references to _crypt and can't resolve it unless -lcrypt occurs after it in the link command. This only occurs when linking statically.

# From:	@(#)Makefile	8.1 (Berkeley) 7/19/93
# $Id: Makefile,v 1.11 1995/01/14 22:57:38 wollman Exp $

PROG=	login
MAN1=	login.1
MAN5=	login.access.5
SRCS=	login.c login_access.c login_fbtab.c

CFLAGS+=-DLOGIN_ACCESS -DSKEY -DLOGALL

.if defined(KLOGIN_PARANOID)
CFLAGS+=-DKLOGIN_PARANOID
.endif

DPADD=	${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
LDADD=	-lutil -lskey -lmd -lcrypt

.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_EBONES)
CFLAGS+=-DKERBEROS
SRCS+=	klogin.c
DPADD+=	${LIBKRB} ${LIBDES}
LDADD+=	-lkrb -ldes
DISTRIBUTION=	krb
.endif

BINOWN=	root
BINMODE=4555
INSTALLFLAGS=-fschg

.include <bsd.prog.mk>


FROM python:3.9@sha256:e6654afa815122b13242fc9ff513e2d14b00548ba6eaf4d3b03f2f261d85272d

# install all the dependencies except libcairo2 from jessie, then install libcairo2 from stretch
RUN apt-get -y update \
    && apt-get install -y \
        fonts-font-awesome \
        libffi-dev \
        libgdk-pixbuf2.0-0 \
        libpango1.0-0 \
        python-dev \
        python-lxml \
        shared-mime-info \
        libcairo2

WORKDIR /app

RUN pip install WeasyPrint pika requests sentry-sdk

COPY workers/print-weasy .

CMD python -u print.py

Use python3 variant of package after original was not available any more

FROM python:3.9@sha256:e6654afa815122b13242fc9ff513e2d14b00548ba6eaf4d3b03f2f261d85272d

# install all the dependencies except libcairo2 from jessie, then install libcairo2 from stretch
RUN apt-get -y update \
    && apt-get install -y \
        fonts-font-awesome \
        libffi-dev \
        libgdk-pixbuf2.0-0 \
        libpango1.0-0 \
        python-dev \
        python3-lxml \
        shared-mime-info \
        libcairo2

WORKDIR /app

RUN pip install WeasyPrint pika requests sentry-sdk

COPY workers/print-weasy .

CMD python -u print.py


FROM fsharp
LABEL maintainer "Dave Curylo <dave@curylo.org>, Steve Desmond <steve@stevedesmond.ca>"

ENV FrameworkPathOverride /usr/lib/mono/4.5/
RUN apt-get update && \
    apt-get --no-install-recommends install -y curl libunwind8 gettext apt-transport-https
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg && \
    echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-jessie-prod jessie main" > /etc/apt/sources.list.d/dotnetdev.list && \
    apt-get update && apt-get --no-install-recommends install -y dotnet-sdk-2.0.3 && \
    rm -rf /var/lib/apt/lists/*
RUN mkdir warmup && \
    cd warmup && \
    dotnet new && \
    cd .. && \
    rm -rf warmup && \
    rm -rf /tmp/NuGetScratch
WORKDIR /root

Update to .NET Core 2.1.4 SDK

FROM fsharp
LABEL maintainer "Dave Curylo <dave@curylo.org>, Steve Desmond <steve@stevedesmond.ca>"

ENV FrameworkPathOverride /usr/lib/mono/4.5/
RUN apt-get update && \
    apt-get --no-install-recommends install -y curl libunwind8 gettext apt-transport-https
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg && \
    echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-jessie-prod jessie main" > /etc/apt/sources.list.d/dotnetdev.list && \
    apt-get update && apt-get --no-install-recommends install -y dotnet-sdk-2.1.4 && \
    rm -rf /var/lib/apt/lists/*
RUN mkdir warmup && \
    cd warmup && \
    dotnet new && \
    cd .. && \
    rm -rf warmup && \
    rm -rf /tmp/NuGetScratch
WORKDIR /root


<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="app/vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stderr="true"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="Unit Tests">
            <directory suffix="Test.php">app/tests/Unit</directory>
            <directory suffix="Test.php">app/sprinkles/*/tests/Unit</directory>
        </testsuite>
        <testsuite name="Integration Tests">
            <directory suffix=".php">app/sprinkles/*/tests/Integration</directory>
        </testsuite>
    </testsuites>
    <php>
        <env name="UF_MODE" value="testing"/>
    </php>
    <filter>
      <whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="false">
          <directory suffix=".php">app/sprinkles/*/src/</directory>
          <directory suffix=".php">app/system/</directory>
      </whitelist>
    </filter>
</phpunit>

Set PHPunit stopOnFailure true, to speed up Travis

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="app/vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stderr="true"
         stopOnFailure="true">
    <testsuites>
        <testsuite name="Unit Tests">
            <directory suffix="Test.php">app/tests/Unit</directory>
            <directory suffix="Test.php">app/sprinkles/*/tests/Unit</directory>
        </testsuite>
        <testsuite name="Integration Tests">
            <directory suffix=".php">app/sprinkles/*/tests/Integration</directory>
        </testsuite>
    </testsuites>
    <php>
        <env name="UF_MODE" value="testing"/>
    </php>
    <filter>
      <whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="false">
          <directory suffix=".php">app/sprinkles/*/src/</directory>
          <directory suffix=".php">app/system/</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="false"
     verbose="true"
     bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="date.timezone" value="UTC" />

        <env name="TARANTOOL_CLIENT" value="pure" />
        <env name="TARANTOOL_CONN" value="tcp" />
        <env name="TARANTOOL_CONN_HOST" value="127.0.0.1" />
        <env name="TARANTOOL_CONN_PORT" value="3301" />
        <env name="TARANTOOL_CONN_UNIX" value="unix:///var/run/tarantool/instance.control" />
        <env name="TARANTOOL_PACKER" value="pecl" />
    </php>

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

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

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

Set "php_only" setting to off for PeclLitePacker

<?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="vendor/autoload.php"
>
    <php>
        <ini name="date.timezone" value="UTC" />
        <ini name="msgpack.php_only" value="0" />

        <env name="TARANTOOL_CLIENT" value="pure" />
        <env name="TARANTOOL_CONN" value="tcp" />
        <env name="TARANTOOL_CONN_HOST" value="127.0.0.1" />
        <env name="TARANTOOL_CONN_PORT" value="3301" />
        <env name="TARANTOOL_CONN_UNIX" value="unix:///var/run/tarantool/instance.control" />
        <env name="TARANTOOL_PACKER" value="pecl" />
    </php>

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

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

    <filter>
        <whitelist>
            <directory>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"
         bootstrap="./Tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="DoctrineMongoDBBundle Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <php>
        <!-- <server name="SYMFONY" value="/path/to/symfony/src" /> -->
        <!-- <server name="SYMFONY_TESTS" value="/path/to/symfony/tests" /> -->
        <!-- <server name="DOCTRINE_MONGODB_ODM" value="/path/to/doctrine-mongodb-odm/lib" /> -->
        <!-- <server name="DOCTRINE_MONGODB" value="/path/to/doctrine-mongodb/lib" /> -->
        <!-- <server name="DOCTRINE_COMMON" value="/path/to/doctrine-common/lib" /> -->
        <!-- Allow 1 direct deprecation until https://github.com/doctrine/DoctrineMongoDBBundle/pull/675 is merged -->
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=1"/>
    </php>

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

Add symfony/phpunit-bridge to show deprecations

<?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="./Tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="DoctrineMongoDBBundle Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <php>
        <!-- <server name="SYMFONY" value="/path/to/symfony/src" /> -->
        <!-- <server name="SYMFONY_TESTS" value="/path/to/symfony/tests" /> -->
        <!-- <server name="DOCTRINE_MONGODB_ODM" value="/path/to/doctrine-mongodb-odm/lib" /> -->
        <!-- <server name="DOCTRINE_MONGODB" value="/path/to/doctrine-mongodb/lib" /> -->
        <!-- <server name="DOCTRINE_COMMON" value="/path/to/doctrine-common/lib" /> -->
        <!-- Allow 1 direct deprecation until https://github.com/doctrine/DoctrineMongoDBBundle/pull/675 is merged -->
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=1"/>
    </php>

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

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


<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         beStrictAboutOutputDuringTests="true"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnError="false"
         stopOnFailure="false"
         verbose="true"
>
    <testsuites>
        <testsuite name="Telegram Bot PHP SDK Test Suite">
            <directory suffix="Test.php">./tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
        </whitelist>
    </filter>
</phpunit>

Exclude Config Dir from Code Coverage.

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         beStrictAboutOutputDuringTests="true"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnError="false"
         stopOnFailure="false"
         verbose="true"
>
    <testsuites>
        <testsuite name="Telegram Bot PHP SDK Test Suite">
            <directory suffix="Test.php">./tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
            <exclude>
                <directory suffix=".php">./src/Laravel/config</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0"?>
<phpunit backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false" bootstrap="tests/phpunit/bootstrap.php">
  <testsuites>
    <testsuite name="My Test Suite">
      <directory>./tests/phpunit</directory>
    </testsuite>
  </testsuites>
  <filter>
    <whitelist>
      <directory suffix=".php">./</directory>
    </whitelist>
  </filter>
  <listeners>
    <listener class="Civi\Test\CiviTestListener">
      <arguments/>
    </listener>
  </listeners>
</phpunit>

Make PHPUnit Configuration file compatible with PHPUnit7

<?xml version="1.0"?>
<phpunit backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" bootstrap="tests/phpunit/bootstrap.php">
  <testsuites>
    <testsuite name="My Test Suite">
      <directory>./tests/phpunit</directory>
    </testsuite>
  </testsuites>
  <filter>
    <whitelist>
      <directory suffix=".php">./</directory>
    </whitelist>
  </filter>
  <listeners>
    <listener class="Civi\Test\CiviTestListener">
      <arguments/>
    </listener>
  </listeners>
</phpunit>


# just -opam tag because make setup will install ocaml compiler
FROM ocaml/opam:ubuntu-21.04-opam AS dev

# TODO: use opam depext
RUN sudo apt-get update \
    && sudo apt-get install -y libgmp-dev libmpfr-dev m4 autoconf pkg-config ruby gem curl

# otherwise perl (not ruby!) complains during regression testing
ENV LC_ALL=C.UTF-8

Fix git credentials inside devcontainer

# just -opam tag because make setup will install ocaml compiler
FROM ocaml/opam:ubuntu-21.04-opam AS dev

# TODO: use opam depext
RUN sudo apt-get update \
    && sudo apt-get install -y libgmp-dev libmpfr-dev m4 autoconf pkg-config ruby gem curl

# remove default Docker <docker@example.com> git credentials added by opam base image: https://github.com/avsm/ocaml-dockerfile/blob/f184554282a3836bf3f1c34d20e77d0530f8349d/src-opam/dockerfile_linux.ml#L24-L28
# this prevents devcontainer from using outside git credentials: https://code.visualstudio.com/docs/remote/containers#_sharing-git-credentials-with-your-container
RUN rm ~/.gitconfig

# otherwise perl (not ruby!) complains during regression testing
ENV LC_ALL=C.UTF-8


# $Id: Makefile,v 1.8 1993/11/03 13:01:36 cgd Exp $
#

PROG=	ld
SRCS=	ld.c symbol.c lib.c shlib.c warnings.c etc.c rrs.c xbits.c md.c
CFLAGS += -g -I$(.CURDIR) -I$(.CURDIR)/$(MACHINE)

LDADD+=	-lgnumalloc
DPADD+= /usr/lib/libgnumalloc.a

SUBDIR=	ldconfig ldd rtld

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

.include <bsd.prog.mk>

Remove -g option (second time!) !!! Please anybody who port Makefiles from NetBSD, !!! remove -g option!

# $Id: Makefile,v 1.8 1993/11/30 20:47:22 jkh Exp $
#

PROG=	ld
SRCS=	ld.c symbol.c lib.c shlib.c warnings.c etc.c rrs.c xbits.c md.c
CFLAGS += -I$(.CURDIR) -I$(.CURDIR)/$(MACHINE)

LDADD+=	-lgnumalloc
DPADD+= /usr/lib/libgnumalloc.a

SUBDIR=	ldconfig ldd rtld

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

.include <bsd.prog.mk>


@PACKAGE_INIT@

include(CMakeFindDependencyMacro)

# Add FindRdKafka.cmake
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}")

# Find boost optional
find_dependency(Boost REQUIRED)

# Try to find the RdKafka configuration file if present.
# This will search default system locations as well as RdKafka_ROOT and RdKafka_Dir paths if specified.
find_dependency(RdKafka QUIET CONFIG)
set(RDKAFKA_TARGET_IMPORTS ${RdKafka_FOUND})
if (NOT RdKafka_FOUND)
    message(STATUS "RdKafkaConfig.cmake not found. Attempting to find module instead...")
    find_dependency(RdKafka REQUIRED QUIET MODULE)
    if (NOT RdKafka_FOUND)
        message(FATAL_ERROR "RdKafka module not found. Please set RDKAFKA_ROOT to the install path or RDKAFKA_DIR pointing to the RdKafka configuration file location.")
    else()
        message(STATUS "RdKafka module found.")
    endif()
else()
    message(STATUS "RdKafka configuration file found: ${RdKafka_CONFIG}")
endif()

include("${CMAKE_CURRENT_LIST_DIR}/@TARGET_EXPORT_NAME@.cmake")

# Export 'CppKafka_ROOT'
set_and_check(@PROJECT_NAME@_ROOT "@PACKAGE_CMAKE_INSTALL_PREFIX@")

# Export 'CppKafka_INSTALL_INCLUDE_DIR'
set_and_check(@PROJECT_NAME@_INSTALL_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")

# Export 'CppKafka_INSTALL_LIB_DIR'
set_and_check(@PROJECT_NAME@_INSTALL_LIB_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")

# Validate installed components
check_required_components("@PROJECT_NAME@")

Remove comment from config file relating to not finding the RdKafka config file.

@PACKAGE_INIT@

include(CMakeFindDependencyMacro)

# Add FindRdKafka.cmake
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}")

# Find boost optional
find_dependency(Boost REQUIRED)

# Try to find the RdKafka configuration file if present.
# This will search default system locations as well as RdKafka_ROOT and RdKafka_Dir paths if specified.
find_dependency(RdKafka QUIET CONFIG)
set(RDKAFKA_TARGET_IMPORTS ${RdKafka_FOUND})
if (NOT RdKafka_FOUND)
    find_dependency(RdKafka REQUIRED MODULE)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/@TARGET_EXPORT_NAME@.cmake")

# Export 'CppKafka_ROOT'
set_and_check(@PROJECT_NAME@_ROOT "@PACKAGE_CMAKE_INSTALL_PREFIX@")

# Export 'CppKafka_INSTALL_INCLUDE_DIR'
set_and_check(@PROJECT_NAME@_INSTALL_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")

# Export 'CppKafka_INSTALL_LIB_DIR'
set_and_check(@PROJECT_NAME@_INSTALL_LIB_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")

# Validate installed components
check_required_components("@PROJECT_NAME@")


# $FreeBSD$

.include <bsd.own.mk>

.include "../Makefile.inc"
.include "../Makefile.fe"

.PATH: ${GCCDIR}/cp

PROG=	g++
SRCS+=	g++spec.c
.if ${MK_CLANG_IS_CC} == "no"
LINKS=	${BINDIR}/g++ ${BINDIR}/c++
LINKS+=	${BINDIR}/g++ ${BINDIR}/CC
.endif
NO_MAN=

DPADD=	${LIBCPP} ${LIBIBERTY}
LDADD=	${LIBCPP} ${LIBIBERTY}

.include <bsd.prog.mk>

Reorder so that NO_MAN is declared before bsd.own.mk is included and thus has an effect (not installed a g++.1 manpage over the g++.1(.gz) link created in ../cc).

# $FreeBSD$

.include "../Makefile.inc"
.include "../Makefile.fe"

.PATH: ${GCCDIR}/cp

PROG=	g++
SRCS+=	g++spec.c
NO_MAN=

DPADD=	${LIBCPP} ${LIBIBERTY}
LDADD=	${LIBCPP} ${LIBIBERTY}

.include <bsd.own.mk>

.if ${MK_CLANG_IS_CC} == "no"
LINKS=	${BINDIR}/g++ ${BINDIR}/c++
LINKS+=	${BINDIR}/g++ ${BINDIR}/CC
.endif

.include <bsd.prog.mk>


all: app scraper

app: _go_deps _js_deps _ln_deps
	go build -o ../build/server ./app/*.go

_js_deps:
	cd web && npm install && node_modules/@angular/cli/bin/ng build --prod --aot && npm run sw

_ln_deps:
	mkdir -p ../build/
	mkdir -p ../build/static
	ln -s ../src/web/dist ../build/
	ln -s ../src/scripts/db_dump.sh ../build/
	ln -s ../src/analysis/stations-coordinates.csv ../build/

scraper: _go_deps
	go build -o ../build/scraper ./main/scraper/*.go

_go_deps:
	go get ./...

Add go testing to deployment script

all: app scraper test

app: _go_deps _js_deps _ln_deps
	go build -o ../build/server ./app/*.go

_js_deps:
	cd web && npm install && node_modules/@angular/cli/bin/ng build --prod --aot && npm run sw

_ln_deps:
	mkdir -p ../build/
	mkdir -p ../build/static
	ln -s ../src/web/dist ../build/
	ln -s ../src/scripts/db_dump.sh ../build/
	ln -s ../src/analysis/stations-coordinates.csv ../build/

scraper: _go_deps
	go build -o ../build/scraper ./main/scraper/*.go

_go_deps:
	go get -u ./...

test: _go_deps
	go test ./...


FROM alpine:3.2

ENV CONSUL_VERSION 0.6.4
ENV CONSUL_SHA256 abdf0e1856292468e2c9971420d73b805e93888e006c76324ae39416edcf0627
ENV GLIBC_VERSION "2.23-r1"

RUN apk --update add curl ca-certificates && \
    curl -Ls https://github.com/andyshinn/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk > /tmp/glibc-${GLIBC_VERSION}.apk && \
    apk add --allow-untrusted /tmp/glibc-${GLIBC_VERSION}.apk && \
    rm -rf /tmp/glibc-${GLIBC_VERSION}.apk /var/cache/apk/*
ADD https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip /tmp/consul.zip
RUN echo "${CONSUL_SHA256}  /tmp/consul.zip" > /tmp/consul.sha256 \
  && sha256sum -c /tmp/consul.sha256 \
  && cd /bin \
  && unzip /tmp/consul.zip \
  && chmod +x /bin/consul \
  && rm /tmp/consul.zip

ENTRYPOINT ["/bin/consul"]

Update alpine, remove glibc, reduce image size.

FROM alpine:3.4

ENV CONSUL_VERSION 0.6.4
ENV CONSUL_SHA256 abdf0e1856292468e2c9971420d73b805e93888e006c76324ae39416edcf0627

RUN apk --no-cache add curl ca-certificates \
    && curl -sSL https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip -o /tmp/consul.zip \
    && echo "${CONSUL_SHA256}  /tmp/consul.zip" > /tmp/consul.sha256 \
    && sha256sum -c /tmp/consul.sha256 \
    && cd /bin \
    && unzip /tmp/consul.zip \
    && chmod +x /bin/consul \
    && rm /tmp/consul.zip \
    && apk del curl ca-certificates

ENTRYPOINT ["/bin/consul"]


#	$Id: Makefile,v 1.31 1996/08/08 02:21:06 jkh Exp $

SUBDIR= as awk bc bison cc cpio cvs dc dialog diff diff3 gdb gperf \
	grep groff gzip ld man patch perl ptx rcs sdiff send-pr \
	sort tar texinfo

.include <bsd.subdir.mk>

Add genclass to the subdir list

#	$Id: Makefile,v 1.32 1996/09/10 14:04:37 peter Exp $

SUBDIR= as awk bc bison cc cpio cvs dc dialog diff diff3 gdb genclass gperf \
	grep groff gzip ld man patch perl ptx rcs sdiff send-pr \
	sort tar texinfo

.include <bsd.subdir.mk>


set(KML_INCLUDE_DIRS
  "@CMAKE_INSTALL_PREFIX@/include";
  "@EXPAT_INCLUDE_DIRS@";
  "@Boost_INCLUDE_DIR@")

if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/KMLTargets.cmake" AND NOT TARGET kml)
  include("${CMAKE_CURRENT_LIST_DIR}/KMLTargets.cmake")
endif()

Remove stray ';'s in config

set(KML_INCLUDE_DIRS
  "@CMAKE_INSTALL_PREFIX@/include"
  "@EXPAT_INCLUDE_DIRS@"
  "@Boost_INCLUDE_DIR@")

if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/KMLTargets.cmake" AND NOT TARGET kml)
  include("${CMAKE_CURRENT_LIST_DIR}/KMLTargets.cmake")
endif()


#!/bin/sh

# errors shouldn't cause script to exit
set +e

sudo initctl stop shiny-server 2>/dev/null

# clear error termination state
set -e

Stop init.d service on uninstall in RPM.

#!/bin/sh

# errors shouldn't cause script to exit
set +e

if [ -f /etc/init/shiny-server.conf ]
then
  sudo initctl stop shiny-server 2>/dev/null
fi

if [ -f /etc/init.d/shiny-server ]
then
  sudo service shiny-server stop 2>/dev/null
fi

# clear error termination state
set -e


#	$NetBSD: Makefile,v 1.7 2000/06/14 20:22:19 matt Exp $
# $FreeBSD$

.include <bsd.own.mk>

LIBS=	llib-lposix.ln llib-lstdc.ln
LINT=	${.OBJDIR}/../xlint/xlint

.if ${MKLINT} != "no"
FILES=	${LIBS}
FILESDIR= ${LINTLIBDIR}

install:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${LIBMODE} \
	    ${LIBS} ${DESTDIR}${LINTLIBDIR}

CLEANFILES+= ${LIBS}

llib-lposix.ln: llib-lposix
	${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC}

llib-lstdc.ln: llib-lstdc
	${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC}

.include <bsd.prog.mk>

Fix silly one line error. (Half a .if statement left behind).

#	$NetBSD: Makefile,v 1.7 2000/06/14 20:22:19 matt Exp $
# $FreeBSD$

.include <bsd.own.mk>

LIBS=	llib-lposix.ln llib-lstdc.ln
LINT=	${.OBJDIR}/../xlint/xlint

FILES=	${LIBS}
FILESDIR= ${LINTLIBDIR}

install:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${LIBMODE} \
	    ${LIBS} ${DESTDIR}${LINTLIBDIR}

CLEANFILES+= ${LIBS}

llib-lposix.ln: llib-lposix
	${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC}

llib-lstdc.ln: llib-lstdc
	${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC}

.include <bsd.prog.mk>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        colors="true"
        bootstrap="vendor/autoload.php"
        xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
>
    <testsuites>
        <testsuite name="GosWebSocketBundle Test Suite">
            <directory>./tests</directory>
        </testsuite>
    </testsuites>

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

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

    <php>
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=1&max[indirect]=29"/>
    </php>
</phpunit>

Tweak deprecation counts because PHP 8.2 is blowing things up

<?xml version="1.0" encoding="UTF-8"?>
<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        colors="true"
        bootstrap="vendor/autoload.php"
        xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
>
    <testsuites>
        <testsuite name="GosWebSocketBundle Test Suite">
            <directory>./tests</directory>
        </testsuite>
    </testsuites>

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

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

    <php>
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=31&max[direct]=3&max[indirect]=29"/>
    </php>
</phpunit>


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

<phpunit bootstrap="vendor/autoload.php" colors="true">
    <testsuites>
        <testsuite name="PHProfiling Test Suite">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>

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

</phpunit>

Update phpunit configuration for excluding items and coverage measurement.

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

<phpunit
        testsuite="PHProfiling"
        bootstrap="vendor/autoload.php"
        colors="true"
>
    <testsuites>
        <testsuite name="PHProfiling">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>

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

</phpunit>


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

<phpunit bootstrap="vendor/autoload.php"
         colors="true"
>
    <testsuites>
        <testsuite>
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Remove non-source files from Code Coverage by using whitelist.

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

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


<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="src/Gendoria/CommandQueue/Tests/bootstrap.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
>
    <testsuites>
        <testsuite name="Cruftflake Test Suite">
            <directory>./src/Gendoria/CommandQueue/Tests</directory>
        </testsuite>
    </testsuites>

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

Exclude test files from code coverage.

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="src/Gendoria/CommandQueue/Tests/bootstrap.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
>
    <testsuites>
        <testsuite name="Cruftflake Test Suite">
            <directory>./src/Gendoria/CommandQueue/Tests</directory>
        </testsuite>
    </testsuites>

    <filter>
		<whitelist processUncoveredFilesFromWhitelist="true">
			<directory suffix=".php">src/*</directory>
            <exclude>
                <directory>./src/Gendoria/CommandQueue/Tests/*</directory>
            </exclude>
		</whitelist>
	</filter>
</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"
>
    <testsuites>
        <testsuite name="Symfony Locale Component 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>

Adjust error_reporting to allow deprecation messages for 3.0

<?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>
        <!-- Disable E_USER_DEPRECATED until 3.0 -->
        <!-- php -r 'echo -1 & ~E_USER_DEPRECATED;' -->
        <ini name="error_reporting" value="-16385"/>
    </php>

    <testsuites>
        <testsuite name="Symfony Locale Component 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>


#	$Id: Makefile,v 1.36 1997/04/12 07:19:09 peter Exp $

SUBDIR= bc bison cc cpio cvs dc dialog diff diff3 genclass gperf \
	grep gzip man patch ptx rcs sdiff send-pr \
	sort tar texinfo

.if ${MACHINE_ARCH} == "i386"
SUBDIR=as awk gdb groff ld

.if !defined(NOPERL) && exists(${.CURDIR}/perl)
SUBDIR+=perl
.endif
.endif

.include <bsd.subdir.mk>

Correct spammage from MACHINE_ARCH commit - you don't want to *replace* the SUBDIR list in that case, you want to augment it. Also move a stray .endif to its proper location. Heh, no wonder my release builds were falling over! ;)

#	$Id: Makefile,v 1.37 1998/02/19 09:34:59 jb Exp $

SUBDIR= bc bison cc cpio cvs dc dialog diff diff3 genclass gperf \
	grep gzip man patch ptx rcs sdiff send-pr \
	sort tar texinfo

.if ${MACHINE_ARCH} == "i386"
SUBDIR+=as awk gdb groff ld
.endif

.if !defined(NOPERL) && exists(${.CURDIR}/perl)
SUBDIR+=perl
.endif

.include <bsd.subdir.mk>


include(@CMAKE_INSTALL_PREFIX@/share/qzeitgeist/cmake/QZeitgeistExport.cmake)
set(QZEITGEIST_LIBRARY QZEITGEIST_qzeitgeist)
set(QZEITGEIST_INCLUDE_DIR @CMAKE_INSTALL_PREFIX@/include/QtZeitgeist)
set(QZEITGEIST_FOUND TRUE)

Fix include paths to allow for includes of type <QtZeitgeist/Log>

include(@CMAKE_INSTALL_PREFIX@/share/qzeitgeist/cmake/QZeitgeistExport.cmake)
set(QZEITGEIST_LIBRARY QZEITGEIST_qzeitgeist)
set(QZEITGEIST_INCLUDE_DIR @CMAKE_INSTALL_PREFIX@/include/QtZeitgeist @CMAKE_INSTALL_PREFIX@/include/)
set(QZEITGEIST_FOUND TRUE)


# Grantlee CMake configuration file - http://www.grantlee.org/

# If this file was found, then Avogadro has been found
set(Grantlee_FOUND 1)

set(Grantlee_VERSION_MAJOR "@Grantlee_VERSION_MAJOR@")
set(Grantlee_VERSION_MINOR "@Grantlee_VERSION_MINOR@")
set(Grantlee_VERSION_PATCH "@Grantlee_VERSION_PATCH@")

set(Grantlee_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
set(Grantlee_INCLUDE_DIRS   "@CMAKE_INSTALL_PREFIX@"/include)
set(Grantlee_LIBRARY_DIRS   "@CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@")
set(Grantlee_PLUGIN_PATH    "@LIB_INSTALL_DIR@/grantlee/")

if (UNIX)
  set(Grantlee_CORE_LIBRARY "@LIB_INSTALL_DIR@/libgrantlee_core.so")
else (UNIX)
  set(Grantlee_CORE_LIBRARY "@LIB_INSTALL_DIR@/grantlee_core.dll")
endif (UNIX)

set(Grantlee_CORE_LIBRARIES ${Grantlee_CORE_LIBRARY} ${QT_QTCORE_LIBRARIES} )

# Now for the use file, which contains useful functions, sets up the project
set(Grantlee_USE_FILE "${Grantlee_PLUGIN_PATH}/@Grantlee_VERSION_MAJOR@.@Grantlee_VERSION_MINOR@/GrantleeUse.cmake")

Use the correct install dir for libraries.

# Grantlee CMake configuration file - http://www.grantlee.org/

# Any changes in this file will be overwritten by CMake.

set(Grantlee_VERSION_MAJOR "@Grantlee_VERSION_MAJOR@")
set(Grantlee_VERSION_MINOR "@Grantlee_VERSION_MINOR@")
set(Grantlee_VERSION_PATCH "@Grantlee_VERSION_PATCH@")

set(Grantlee_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
set(Grantlee_INCLUDE_DIR   "@CMAKE_INSTALL_PREFIX@"/include)
set(Grantlee_LIBRARY_DIR   "@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@")
set(Grantlee_PLUGIN_PATH    "${Grantlee_LIBRARY_DIR}/grantlee")

if (UNIX)
  set(Grantlee_CORE_LIBRARY "${Grantlee_LIBRARY_DIR}/libgrantlee_core.so")
else (UNIX)
  set(Grantlee_CORE_LIBRARY "${Grantlee_LIBRARY_DIR}/grantlee_core.dll")
endif (UNIX)

set(Grantlee_CORE_LIBRARIES ${Grantlee_CORE_LIBRARY} ${QT_QTCORE_LIBRARIES} )

# Now for the use file, which contains useful functions, sets up the project
set(Grantlee_USE_FILE "${Grantlee_PLUGIN_PATH}/@Grantlee_VERSION_MAJOR@.@Grantlee_VERSION_MINOR@/GrantleeUse.cmake")


FROM ubuntu:16.04

ENV LLVM_VERSION 5.0.1

RUN apt-get update \
 && apt-get install -y \
  apt-transport-https \
  g++ \
  git \
  libncurses5-dev \
  libpcre2-dev \
  make \
  wget \
  xz-utils \
  zlib1g-dev \
 && wget -O - http://llvm.org/releases/${LLVM_VERSION}/clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-16.04.tar.xz \
 | tar xJf - --strip-components 1 -C /usr/local/ clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-16.04

 RUN wget https://www.openssl.org/source/openssl-1.1.0.tar.gz \
   && tar xf openssl-1.1.0.tar.gz \
   && cd openssl-1.1.0 \
   && ./config \
   && make \
   && make install \
   && cd .. \
   && rm -rf openssl-1.1.0*

# add user pony in order to not run tests as root
RUN useradd -ms /bin/bash -d /home/pony -g root pony
USER pony
WORKDIR /home/pony

Update OpenSSL 1.1 CI test to use LLVM 7.0.1

FROM ubuntu:16.04

ENV LLVM_VERSION 7.0.1

RUN apt-get update \
 && apt-get install -y \
  apt-transport-https \
  g++ \
  git \
  libncurses5-dev \
  libpcre2-dev \
  make \
  wget \
  xz-utils \
  zlib1g-dev \
 && wget -O - http://llvm.org/releases/${LLVM_VERSION}/clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-16.04.tar.xz \
 | tar xJf - --strip-components 1 -C /usr/local/ clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-16.04

 RUN wget https://www.openssl.org/source/openssl-1.1.0.tar.gz \
   && tar xf openssl-1.1.0.tar.gz \
   && cd openssl-1.1.0 \
   && ./config \
   && make \
   && make install \
   && cd .. \
   && rm -rf openssl-1.1.0*

# add user pony in order to not run tests as root
RUN useradd -ms /bin/bash -d /home/pony -g root pony
USER pony
WORKDIR /home/pony


[Desktop Entry]
Type=Link
Name=Mobile Modems Manager
Name[pt_BR]=Gerenciador de modems móveis
Name[es]=Gerenciador de modems moviles
Name[it]=Gestore di modem mobili
Name[fr]=Gestionnaire de modems mobiles
Icon=e-module-connman
Comment=<title>Mobile Modems Manager Gadget</title>
Control mobile modems.
Comment[pt_BR]=<title>Gerenciador de modems móveis</title>
Controla modems móveis.
Comment[es]=<title>Gerenciador de modems mobiles</title>
Controla modems móviles
Comment[it]=<title>Gadget gestione modem mobili</title>
Controlla i modem mobili.
Comment[fr]=<title>Gestionnaire de modems mobiles</title>
Contrôle des modems mobiles.
X-Enlightenment-ModuleType=system

Fix module icon for ofono.

[Desktop Entry]
Type=Link
Name=Mobile Modems Manager
Name[pt_BR]=Gerenciador de modems móveis
Name[es]=Gerenciador de modems moviles
Name[it]=Gestore di modem mobili
Name[fr]=Gestionnaire de modems mobiles
Icon=e-module-ofono
Comment=<title>Mobile Modems Manager Gadget</title>
Control mobile modems.
Comment[pt_BR]=<title>Gerenciador de modems móveis</title>
Controla modems móveis.
Comment[es]=<title>Gerenciador de modems mobiles</title>
Controla modems móviles
Comment[it]=<title>Gadget gestione modem mobili</title>
Controlla i modem mobili.
Comment[fr]=<title>Gestionnaire de modems mobiles</title>
Contrôle des modems mobiles.
X-Enlightenment-ModuleType=system


.PHONY: docs

help:
	@echo "test - run the test py.test suite"
	@echo "coverage - generate a coverage report and open it"
	@echo "docs - generate Sphinx HTML documentation and open it"
	@echo "apk - build an android apk with buildozer"
	@echo "deploy - deploy the app to your android device"

test:
	python setup.py test

coverage:
	python setup.py test -a '--cov={{cookiecutter.repo_name}} --cov-report=html'
	xdg-open htmlcov/index.html

docs:
	$(MAKE) -C docs html
	xdg-open docs/build/html/index.html

apk:
	buildozer -v android debug

deploy:
	buildozer android deploy logcat

Implement i18n targets in Makefile

.PHONY: docs po mo

help:
	@echo "test - run the test py.test suite"
	@echo "coverage - generate a coverage report and open it"
	@echo "docs - generate Sphinx HTML documentation and open it"
	@echo "apk - build an android apk with buildozer"
	@echo "deploy - deploy the app to your android device"

test:
	python setup.py test

coverage:
	python setup.py test -a '--cov={{cookiecutter.repo_name}} --cov-report=html'
	xdg-open htmlcov/index.html

docs:
	$(MAKE) -C docs html
	xdg-open docs/build/html/index.html

apk:
	buildozer -v android debug

deploy:
	buildozer android deploy logcat

po:
	xgettext -Lpython --keyword=tr:1 --output=messages.pot main.py lang.kv
	msgmerge --update --no-fuzzy-matching --backup=off po/en.po messages.pot
	msgmerge --update --no-fuzzy-matching --backup=off po/es.po messages.pot
	msgmerge --update --no-fuzzy-matching --backup=off po/de.po messages.pot
	msgmerge --update --no-fuzzy-matching --backup=off po/fr.po messages.pot

mo:
	mkdir -p data/locales/en/LC_MESSAGES
	mkdir -p data/locales/es/LC_MESSAGES
	mkdir -p data/locales/de/LC_MESSAGES
	mkdir -p data/locales/fr/LC_MESSAGES
	msgfmt -c -o data/locales/en/LC_MESSAGES/langapp.mo po/en.po
	msgfmt -c -o data/locales/de/LC_MESSAGES/langapp.mo po/de.po
	msgfmt -c -o data/locales/es/LC_MESSAGES/langapp.mo po/es.po
	msgfmt -c -o data/locales/fr/LC_MESSAGES/langapp.mo po/fr.po


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

FROM phpdockerio/php74-cli

ENV SWOOLE_VERSION=v4.5.2

# 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/*

Tweak PHP74 swoole build not to require a hardcoded swoole version and instead install the latest stable release in its Github

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

FROM phpdockerio/php74-cli

# Install the latest available published swoole release
RUN apt-get update \
    && apt-get -y --no-install-recommends install \
        build-essential \
        git \
        jq \
        php7.4-dev \
    && cd /tmp \
    && export SWOOLE_VERSION=`curl -s https://api.github.com/repos/swoole/swoole-src/releases/latest |jq -r .tag_name` \
    && 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-get 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/*


<?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="Zack Saga Test Suite">
            <directory>./src/Saga/Tests/</directory>
        </testsuite>
    </testsuites>

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

Exclude Tests folder from whiltelist filter.

<?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="Zack Saga Test Suite">
            <directory>./src/Saga/Tests/</directory>
        </testsuite>
    </testsuites>

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


<?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                   = "./vendor/autoload.php" >

    <testsuites>
        <testsuite name="Checkdomain Holidays Test Suite">
            <directory>./tests</directory>
        </testsuite>
    </testsuites>

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

</phpunit>

Update PHPUnit with new directory pattern

<?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                   = "./vendor/autoload.php" >

    <testsuites>
        <testsuite name="Checkdomain Holidays Test Suite">
            <directory>./test</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./test</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"
         syntaxCheck="false"
         bootstrap="tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="Symfony Validator 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 Validator Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

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


FROM java:8
ENV JRUBY_VERSION 1.7.18
RUN mkdir /opt/jruby \
  && curl http://jruby.org.s3.amazonaws.com/downloads/${JRUBY_VERSION}/jruby-bin-${JRUBY_VERSION}.tar.gz \
  | tar -zxC /opt/jruby --strip-components=1 \
  && update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
ENV PATH /opt/jruby/bin:$PATH

RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc

ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH
RUN gem install bundler \
	&& bundle config --global path "$GEM_HOME" \
	&& bundle config --global bin "$GEM_HOME/bin"

# don't create ".bundle" in all our apps
ENV BUNDLE_APP_CONFIG $GEM_HOME

CMD [ "irb" ]

Use https to download jruby

FROM java:8
ENV JRUBY_VERSION 1.7.18
RUN mkdir /opt/jruby \
  && curl https://s3.amazonaws.com/jruby.org/downloads/1.7.18/jruby-bin-${JRUBY_VERSION}.tar.gz \
  | tar -zxC /opt/jruby --strip-components=1 \
  && update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
ENV PATH /opt/jruby/bin:$PATH

RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc

ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH
RUN gem install bundler \
	&& bundle config --global path "$GEM_HOME" \
	&& bundle config --global bin "$GEM_HOME/bin"

# don't create ".bundle" in all our apps
ENV BUNDLE_APP_CONFIG $GEM_HOME

CMD [ "irb" ]


<?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"
>
    <testsuites>
        <testsuite name="Symfony Filesystem Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

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

Adjust error_reporting to allow deprecation messages for 3.0

<?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>
        <!-- Disable E_USER_DEPRECATED until 3.0 -->
        <!-- php -r 'echo -1 & ~E_USER_DEPRECATED;' -->
        <ini name="error_reporting" value="-16385"/>
    </php>

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

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


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

Fix error: No whitelist configured, no code coverage will be generated

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./tests/_bootstrap.php"
         colors="true"
         backupGlobals="false"
         backupStaticAttributes="false"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false">
    <testsuites>
        <testsuite name="PhpCollection Unit Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/</directory>
        </whitelist>
    </filter>
</phpunit>