<?xml version="1.0" ?>
<phpunit
  bootstrap="tests/phpunit/bootstrap.php"
  backupGlobals="false"
  colors="true"
  convertErrorsToExceptions="true"
  convertNoticesToExceptions="true"
  convertWarningsToExceptions="true"
>
	<php>
		<ini name="error_reporting" value="32767" />
		<ini name="display_errors" value="1" />
		<ini name="display_startup_errors" value="1" />
	</php>

	<testsuites>
		<testsuite name="Web Stories Test Suite">
			<directory suffix=".php">./tests/phpunit/tests</directory>
		</testsuite>
	</testsuites>

	<filter>
		<whitelist processUncoveredFilesFromWhitelist="false">
			<directory suffix=".php">./</directory>
			<exclude>
				<directory suffix=".php">assets</directory>
				<directory suffix=".php">bin</directory>
				<directory suffix=".php">build</directory>
				<directory suffix=".php">node_modules</directory>
				<directory suffix=".php">tests</directory>
				<directory suffix=".php">vendor</directory>
				<file>web-stories.php</file>
				<file>uninstall.php</file>
			</exclude>
		</whitelist>
	</filter>
</phpunit>

Exclude templates folder from coverage

<?xml version="1.0" ?>
<phpunit
  bootstrap="tests/phpunit/bootstrap.php"
  backupGlobals="false"
  colors="true"
  convertErrorsToExceptions="true"
  convertNoticesToExceptions="true"
  convertWarningsToExceptions="true"
>
	<php>
		<ini name="error_reporting" value="32767" />
		<ini name="display_errors" value="1" />
		<ini name="display_startup_errors" value="1" />
	</php>

	<testsuites>
		<testsuite name="Web Stories Test Suite">
			<directory suffix=".php">./tests/phpunit/tests</directory>
		</testsuite>
	</testsuites>

	<filter>
		<whitelist processUncoveredFilesFromWhitelist="false">
			<directory suffix=".php">./</directory>
			<exclude>
				<directory suffix=".php">assets</directory>
				<directory suffix=".php">bin</directory>
				<directory suffix=".php">build</directory>
				<directory suffix=".php">node_modules</directory>
				<directory suffix=".php">tests</directory>
				<directory suffix=".php">vendor</directory>
				<file>web-stories.php</file>
				<file>uninstall.php</file>
				<directory suffix=".php">includes/templates</directory>
			</exclude>
		</whitelist>
	</filter>
</phpunit>


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

<phpunit bootstrap="vendor/autoload.php">
    <testsuites>
        <testsuite name="Faker Test Suite">
            <directory>./test/Faker/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Use colors option when running phpunit

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

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


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

<phpunit bootstrap="vendor/autoload.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         strict="false"
         verbose="false">

    <testsuites>
        <testsuite name="Axstrad\Bundle\ExtraFrameworkBundle">
            <directory suffix="Test.php">Tests/</directory>
        </testsuite>
    </testsuites>

    <logging>
        <log type="coverage-html"
             target="build/coverage"
             title="BankAccount"
             charset="UTF-8"
             yui="true"
             highlight="true"
             lowUpperBound="35"
             highLowerBound="70"
        />
        <log type="coverage-clover" target="build/logs/clover.xml"/>
        <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
    </logging>

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

</phpunit>

Rename the root PHPUnit configuration file and enable strict mode in all

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

<phpunit bootstrap="vendor/autoload.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         strict="true"
         verbose="false">

    <testsuites>
        <testsuite name="Axstrad\Bundle\ExtraFrameworkBundle">
            <directory suffix="Test.php">Tests/</directory>
        </testsuite>
    </testsuites>

    <logging>
        <log type="coverage-html"
             target="build/coverage"
             title="BankAccount"
             charset="UTF-8"
             yui="true"
             highlight="true"
             lowUpperBound="35"
             highLowerBound="70"
        />
        <log type="coverage-clover" target="build/logs/clover.xml"/>
        <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
    </logging>

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

</phpunit>


<phpunit
	bootstrap="tests/bootstrap.php"
	backupGlobals="false"
	colors="true"
	convertErrorsToExceptions="true"
	convertNoticesToExceptions="true"
	convertWarningsToExceptions="true"
	>
	<testsuites>
		<testsuite>
			<directory suffix=".php">./tests/Integration/</directory>
		</testsuite>
	</testsuites>
</phpunit>

Add name attribute to testsuite node

<phpunit
	bootstrap="tests/bootstrap.php"
	backupGlobals="false"
	colors="true"
	convertErrorsToExceptions="true"
	convertNoticesToExceptions="true"
	convertWarningsToExceptions="true"
	>
	<testsuites>
		<testsuite name="UnitTestSuite">
			<directory suffix=".php">./tests/Integration/</directory>
		</testsuite>
	</testsuites>
</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 Config 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 Config Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

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


FROM golang:latest

ADD . /go/src/github.com/influx6/octo

WORKDIR /go/src/github.com/influx6/octo

# Run go get for vendors
RUN go get -u -v

# Install gometalinter
RUN go get -u -v github.com/alecthomas/gometalinter

# Install missing lint tools
RUN gometalinter --install

# Run go linters
RUN gometalinter --deadline 4m --errors ./consts/...
RUN gometalinter --deadline 4m --errors ./instruments/...
RUN gometalinter --deadline 4m --errors ./messages/...
RUN gometalinter --deadline 4m --errors ./mock/...
RUN gometalinter --deadline 4m --errors ./netutils/...
RUN gometalinter --deadline 4m --errors ./streams/...
RUN gometalinter --deadline 4m --errors ./utils/...

# Run go tests
RUN go test -v ./messages/...
RUN go test -v ./mock/...
RUN go test -v ./netutils/...
RUN go test -v ./streams/...
RUN go test -v ./utils/...

Add fix for dockerfile lintings

FROM golang:latest

COPY . /go/src/github.com/influx6/octo

WORKDIR /go/src/github.com/influx6/octo

# Run go get for vendors
RUN go get -u -v

# Install gometalinter
RUN go get -u -v github.com/alecthomas/gometalinter

# Install missing lint tools
RUN gometalinter --install

# Run go linters
RUN gometalinter --deadline 4m --errors ./consts/...
RUN gometalinter --deadline 4m --errors ./instruments/...
RUN gometalinter --deadline 4m --errors ./messages/...
RUN gometalinter --deadline 4m --errors ./mock/...
RUN gometalinter --deadline 4m --errors ./netutils/...
RUN gometalinter --deadline 4m --errors ./streams/...
RUN gometalinter --deadline 4m --errors ./utils/...

# Run go tests
RUN go test -v ./messages/...
RUN go test -v ./mock/...
RUN go test -v ./netutils/...
RUN go test -v ./streams/...
RUN go test -v ./utils/...


<?xml version="1.0"?>
<!-- vim: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: -->
<phpunit bootstrap="src/tests/unit-tests/bootstrap.php">
    <testsuites>
        <testsuite name="Unit Tests">
            <directory suffix="Test.php">src/tests/unit-tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <blacklist>
            <directory suffix=".php">vendor</directory>
            <directory suffix=".php">src/tests</directory>
        </blacklist>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src/bin</directory>
            <directory suffix=".php">src/php</directory>
            <exclude>
              <file>src/php/Lousson/Schema/AnyType.php</file>
              <file>src/php/Lousson/Schema/AnySimpleType.php</file>
           </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-html" target="review/code-coverage"/>
        <log type="coverage-clover" target="review/logs/phpunit.xml"/>
        <log type="json" target="review/logs/phpunit.json"/>
        <log type="tap" target="review/logs/phpunit.tap"/>
        <log type="junit" target="review/logs/phpunit-junit.xml"/>
        <log type="testdox-html" target="review/testdox.html"/>
        <log type="testdox-text" target="review/testdox.txt"/>
    </logging>
</phpunit>

Remove AnySchema interface from code-coverage

<?xml version="1.0"?>
<!-- vim: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: -->
<phpunit bootstrap="src/tests/unit-tests/bootstrap.php">
    <testsuites>
        <testsuite name="Unit Tests">
            <directory suffix="Test.php">src/tests/unit-tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <blacklist>
            <directory suffix=".php">vendor</directory>
            <directory suffix=".php">src/tests</directory>
        </blacklist>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src/bin</directory>
            <directory suffix=".php">src/php</directory>
            <exclude>
              <file>src/php/Lousson/Schema/AnySchema.php</file>
              <file>src/php/Lousson/Schema/AnySimpleType.php</file>
              <file>src/php/Lousson/Schema/AnyType.php</file>
           </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-html" target="review/code-coverage"/>
        <log type="coverage-clover" target="review/logs/phpunit.xml"/>
        <log type="json" target="review/logs/phpunit.json"/>
        <log type="tap" target="review/logs/phpunit.tap"/>
        <log type="junit" target="review/logs/phpunit-junit.xml"/>
        <log type="testdox-html" target="review/testdox.html"/>
        <log type="testdox-text" target="review/testdox.txt"/>
    </logging>
</phpunit>


# $FreeBSD$
#	$NetBSD: Makefile,v 1.15 1997/10/18 15:31:20 lukem Exp $
#	from: @(#)Makefile	8.2 (Berkeley) 4/3/94

# Uncomment the following to provide defaults for gate-ftp operation
#
#CFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21

LUKEMFTP=	${.CURDIR}/../../contrib/lukemftp
.PATH: ${LUKEMFTP}/src

PROG=	ftp
SRCS=	cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c ruserpass.c \
	util.c

CFLAGS+=-I${.CURDIR} -I${LUKEMFTP}
LDADD+=	-ledit -ltermcap -lutil
DPADD+=	${LIBEDIT} ${LIBTERMCAP} ${LIBUTIL}

LINKS=	${BINDIR}/ftp ${BINDIR}/pftp \
	${BINDIR}/ftp ${BINDIR}/gate-ftp
MLINKS=	ftp.1 pftp.1 \
	ftp.1 gate-ftp.1

.include <bsd.prog.mk>

Update for latest lukemftp import.

# $FreeBSD$
#	$NetBSD: Makefile,v 1.15 1997/10/18 15:31:20 lukem Exp $
#	from: @(#)Makefile	8.2 (Berkeley) 4/3/94

# Uncomment the following to provide defaults for gate-ftp operation
#
#CFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21

LUKEMFTP=	${.CURDIR}/../../contrib/lukemftp
.PATH: ${LUKEMFTP}/src

PROG=	ftp
SRCS=	cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c progressbar.c \
	ruserpass.c util.c

CFLAGS+=-I${.CURDIR} -I${LUKEMFTP}
LDADD+=	-ledit -ltermcap -lutil
DPADD+=	${LIBEDIT} ${LIBTERMCAP} ${LIBUTIL}

LINKS=	${BINDIR}/ftp ${BINDIR}/pftp \
	${BINDIR}/ftp ${BINDIR}/gate-ftp
MLINKS=	ftp.1 pftp.1 \
	ftp.1 gate-ftp.1

.include <bsd.prog.mk>


FROM lambci/lambda-base:build

ENV GOLANG_VERSION=1.10 \
    GOPATH=/go \
    PATH=/go/bin:/usr/local/go/bin:$PATH \
    AWS_EXECUTION_ENV=AWS_Lambda_go1.x

WORKDIR /go/src/handler

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/go1.x.tgz | tar -zx -C / && \
  curl https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz | tar -zx -C /usr/local && \
  go get github.com/golang/dep/cmd/dep && \
  go install github.com/golang/dep/cmd/dep && \
  go get golang.org/x/vgo

CMD ["dep", "ensure"]

Update Go build image to 1.10.3

FROM lambci/lambda-base:build

ENV GOLANG_VERSION=1.10.3 \
    GOPATH=/go \
    PATH=/go/bin:/usr/local/go/bin:$PATH \
    AWS_EXECUTION_ENV=AWS_Lambda_go1.x

WORKDIR /go/src/handler

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/go1.x.tgz | tar -zx -C / && \
  curl https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz | tar -zx -C /usr/local && \
  go get github.com/golang/dep/cmd/dep && \
  go install github.com/golang/dep/cmd/dep && \
  go get golang.org/x/vgo

CMD ["dep", "ensure"]


FROM lambci/lambda-base:build

ENV GOLANG_VERSION=1.11.2 \
    GOPATH=/go \
    PATH=/go/bin:/usr/local/go/bin:$PATH \
    AWS_EXECUTION_ENV=AWS_Lambda_go1.x

WORKDIR /go/src/handler

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/go1.x.tgz | tar -zx -C / && \
  curl https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz | tar -zx -C /usr/local && \
  go get github.com/golang/dep/cmd/dep && \
  go install github.com/golang/dep/cmd/dep && \
  go get golang.org/x/vgo

# Add these as a separate layer as they get updated frequently
RUN curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python && \
  pip install -U awscli boto3 aws-sam-cli==0.10.0 aws-lambda-builders==0.2.0 --no-cache-dir

CMD ["dep", "ensure"]

Update go to v1.12 in build image

FROM lambci/lambda-base:build

ENV GOLANG_VERSION=1.12 \
    GOPATH=/go \
    PATH=/go/bin:/usr/local/go/bin:$PATH \
    AWS_EXECUTION_ENV=AWS_Lambda_go1.x

WORKDIR /go/src/handler

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/go1.x.tgz | tar -zx -C / && \
  curl https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz | tar -zx -C /usr/local && \
  go get github.com/golang/dep/cmd/dep && \
  go install github.com/golang/dep/cmd/dep && \
  go get golang.org/x/vgo

# Add these as a separate layer as they get updated frequently
RUN curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python && \
  pip install -U awscli boto3 aws-sam-cli==0.10.0 aws-lambda-builders==0.2.0 --no-cache-dir

CMD ["dep", "ensure"]


#!/bin/bash

set -e
CHECK_ABI=abi-compliance-checker

LAST_ABI_XML_FILE=@CMAKE_BINARY_DIR@/dist/abi/abi_checker_last.xml
LAST_ABI_DUMP=@CMAKE_BINARY_DIR@/abi_dump_last.abi.tar.gz

echo "Generate  new ABI dump...."
$CHECK_ABI -l davix -dump $LAST_ABI_XML_FILE -dump-path $LAST_ABI_DUMP

echo "Comparing to previous ABI dumps with a $(gcc -dumpversion) compiler version and $(gcc -dumpmachine) arch"
shopt -s nullglob
for i in @CMAKE_SOURCE_DIR@/dist/abi/abi_dumps/*$(gcc -dumpversion | sed 's/^\([0-9]*\)\.\([0-9]*\)\.*.*/\1\2/g')*$(gcc -dumpmachine)*.abi.tar.gz
do
echo "Scan for $i with $LAST_ABI_DUMP"
$CHECK_ABI -l davix -old $i -new $LAST_ABI_DUMP
echo "Scan with success"

done

echo "Finish !"

Add extra information to check_abi script

#!/bin/bash

set -e
CHECK_ABI=abi-compliance-checker

LAST_ABI_XML_FILE=@CMAKE_BINARY_DIR@/dist/abi/abi_checker_last.xml
LAST_ABI_DUMP=@CMAKE_BINARY_DIR@/abi_dump_last.abi.tar.gz

echo "Generate  new ABI dump...."
$CHECK_ABI -l davix -dump $LAST_ABI_XML_FILE -dump-path $LAST_ABI_DUMP

echo "Looking for abi dumps in @CMAKE_SOURCE_DIR@/dist/abi/abi_dumps/"
ls @CMAKE_SOURCE_DIR@/dist/abi/abi_dumps/
shopt -s nullglob
for i in @CMAKE_SOURCE_DIR@/dist/abi/abi_dumps/*$(gcc -dumpversion | sed 's/^\([0-9]*\)\.\([0-9]*\)\.*.*/\1\2/g')*$(gcc -dumpmachine)*.abi.tar.gz
do
echo "Scan for $i with $LAST_ABI_DUMP"
$CHECK_ABI -l davix -old $i -new $LAST_ABI_DUMP
echo "Scan with success"

done

echo "Finish !"


FROM alpine:3.5

RUN apk add --no-cache php5 \
        php5-fpm \
        php5-bz2 \
        php5-curl \
        php5-exif \
        php5-iconv \
        php5-mcrypt \
        php5-pdo \
        php5-pdo_mysql \
        php5-pdo_pgsql \
        php5-openssl \
        php5-json \
        php5-phar \
        php5-dom \
        php5-gd \
        php5-ctype \
        php5-zlib \
        git \
        unzip \
        make

COPY container /

RUN set -x \
    && addgroup -g 82 -S www-data \
    && adduser -u 82 -D -S -G www-data www-data

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
    && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
    && php -r "unlink('composer-setup.php');"

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

EXPOSE 9000
CMD ["php-fpm"]

Add php-mysqli for php 5.6

FROM alpine:3.5

RUN apk add --no-cache php5 \
        php5-fpm \
        php5-bz2 \
        php5-curl \
        php5-exif \
        php5-iconv \
        php5-mcrypt \
        php5-pdo \
        php5-pdo_mysql \
        php5-pdo_pgsql \
        php5-openssl \
        php5-json \
        php5-phar \
        php5-dom \
        php5-gd \
        php5-ctype \
        php5-zlib \
        php5-mysqli \
        git \
        unzip \
        make

COPY container /

RUN set -x \
    && addgroup -g 82 -S www-data \
    && adduser -u 82 -D -S -G www-data www-data

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
    && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
    && php -r "unlink('composer-setup.php');"

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

EXPOSE 9000
CMD ["php-fpm"]


<?xml version="1.0"?>
<ruleset
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
    <arg name="basepath" value="." />
    <arg name="extensions" value="php" />
    <arg name="parallel" value="80" />
    <arg name="colors" />
    <arg name="cache" value=".phpcs.cache" />
    <arg value="p" />

    <file>src</file>
    <file>test</file>

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

Remove arbitrary parallelisation from PHPCS

<?xml version="1.0"?>
<ruleset
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
    <arg name="basepath" value="." />
    <arg name="extensions" value="php" />
    <arg name="colors" />
    <arg name="cache" value=".phpcs.cache" />
    <arg value="p" />

    <file>src</file>
    <file>test</file>

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


FROM php:7.1-fpm

RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql

RUN usermod -u 1000 www-data

WORKDIR app/

Update Dockerfile to get symfony

FROM php:7.1-fpm

ENV PHP_APCU_VERSION 4.0.11
ENV PHP_XDEBUG_VERSION 2.4.0

RUN apt-get update\
    && apt-get install -y\
         libpq-dev\
         zlib1g-dev\
         libicu-dev\
         g++\
         && docker-php-source extract\
         ## Intl
         && docker-php-ext-configure intl\
         && docker-php-ext-install intl\
         ## Xdebug
         && pecl install xdebug-beta\
         && docker-php-ext-enable xdebug\
         && echo "xdebug.cli_color=1\nxdebug.remote_autostart=1\nxdebug.remote_connect_back=1" > /usr/local/etc/php/conf.d/xdebug.ini\
         && docker-php-ext-install\
            pdo\
            pdo_pgsql\
            mbstring\
            zip\
         && docker-php-source delete\
         && php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin --filename=composer\
         && chmod +x /usr/local/bin/composer

RUN usermod -u 1000 www-data

WORKDIR app/


<?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"
         failOnRisky="true"
         failOnWarning="true"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

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

    <groups>
        <exclude>
            <group>intl-data</group>
        </exclude>
    </groups>

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

Bump phpunit XSD version to 5.2

<?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"
         failOnRisky="true"
         failOnWarning="true"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

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

    <groups>
        <exclude>
            <group>intl-data</group>
        </exclude>
    </groups>

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


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

<phpunit bootstrap="vendor/autoload.php"
         colors="true"
        >
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
            <exclude>
                <directory suffix=".php">tests</directory>
            </exclude>
        </whitelist>
    </filter>
    <testsuites>
        <testsuite name="The Iconic Config Test Suite">
            <directory>./tests</directory>
        </testsuite>
    </testsuites>
</phpunit>

Add default coverage text logging to stdout

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

<phpunit bootstrap="vendor/autoload.php"
    colors="true"
    >
    <logging>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
    </logging>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
            <exclude>
                <directory suffix=".php">tests</directory>
            </exclude>
        </whitelist>
    </filter>
    <testsuites>
        <testsuite name="The Iconic Config Test Suite">
            <directory>./tests</directory>
        </testsuite>
    </testsuites>
</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 Form 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 Form Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

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


<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         strict="true"
         bootstrap="./Test/bootstrap.php">

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

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory>./</directory>
            <exclude>
                <directory>./Test</directory>
            </exclude>
        </whitelist>
    </filter>

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

</phpunit>

Exclude libraries from code coverage report

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         strict="true"
         bootstrap="./Test/bootstrap.php">

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

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory>./</directory>
            <exclude>
                <directory>./Test</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>

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

</phpunit>


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

Fix name in phpunit config

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


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

Add support for phpunit 5 code coverage

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


<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.3/phpunit.xsd"
        backupGlobals="true"
        backupStaticAttributes="false"
        bootstrap="tests/bootstrap.php"
        cacheTokens="false"
        colors="false"
        convertErrorsToExceptions="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true"
        forceCoversAnnotation="false"
        mapTestClassNameToCoveredClassName="false"
        printerClass="PHPUnit_TextUI_ResultPrinter"
        processIsolation="false"
        stopOnError="false"
        stopOnFailure="false"
        stopOnIncomplete="false"
        stopOnSkipped="false"
        testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
        timeoutForSmallTests="1"
        timeoutForMediumTests="10"
        timeoutForLargeTests="60"
        strict="false"
        verbose="false">
    <testsuites>
        <testsuite name="AllTests">
            <directory>tests/*</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/PhpParser</directory>
            <directory suffix=".php">src/RequirementAnalysis</directory>
            <exclude>
                <file>src/RequirementAnalysis/Result/RequirementCategory.php</file>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Remove no longer existing file from coverage exclude.

<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.3/phpunit.xsd"
        backupGlobals="true"
        backupStaticAttributes="false"
        bootstrap="tests/bootstrap.php"
        cacheTokens="false"
        colors="false"
        convertErrorsToExceptions="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true"
        forceCoversAnnotation="false"
        mapTestClassNameToCoveredClassName="false"
        printerClass="PHPUnit_TextUI_ResultPrinter"
        processIsolation="false"
        stopOnError="false"
        stopOnFailure="false"
        stopOnIncomplete="false"
        stopOnSkipped="false"
        testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
        timeoutForSmallTests="1"
        timeoutForMediumTests="10"
        timeoutForLargeTests="60"
        strict="false"
        verbose="false">
    <testsuites>
        <testsuite name="AllTests">
            <directory>tests/*</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/PhpParser</directory>
            <directory suffix=".php">src/RequirementAnalysis</directory>
        </whitelist>
    </filter>
</phpunit>


#
# $FreeBSD$
#

PROG=	a2p
CFLAGS+=-I${PERL5SRC}/x2p -I${.OBJDIR} -I${.OBJDIR}/temp
LDFLAGS+=-lperl -lm -lcrypt
SRCS=	a2p.c hash.c str.c util.c walk.c config.h

CLEANDIRS+=	temp
CLEANFILES+=	${PROG}.1

config.h: temp

temp:
	@mkdir temp

.include <bsd.prog.mk>

.PATH: ${PERL5SRC}/x2p
.PATH: ${PERL5SRC}

.SUFFIXES:
.SUFFIXES: .c .h .o

${PROG}.1: ${PROG}.pod
	miniperl ${MINIPERLOPT} ${.OBJDIR}/../../pod/pod2man/pod2man ${.OODATE} > ${.TARGET}

Add libmd to LDFLAGS. libmd is needed by libcrypt.

#
# $FreeBSD$
#

PROG=	a2p
CFLAGS+=-I${PERL5SRC}/x2p -I${.OBJDIR} -I${.OBJDIR}/temp
LDFLAGS+=-lperl -lm -lcrypt -lmd
SRCS=	a2p.c hash.c str.c util.c walk.c config.h

CLEANDIRS+=	temp
CLEANFILES+=	${PROG}.1

config.h: temp

temp:
	@mkdir temp

.include <bsd.prog.mk>

.PATH: ${PERL5SRC}/x2p
.PATH: ${PERL5SRC}

.SUFFIXES:
.SUFFIXES: .c .h .o

${PROG}.1: ${PROG}.pod
	miniperl ${MINIPERLOPT} ${.OBJDIR}/../../pod/pod2man/pod2man ${.OODATE} > ${.TARGET}


FROM ubuntu:latest

ARG goversion=1.12
ENV HOME=/home/gitpod
ENV PATH=${PATH}:${HOME}/go/bin:/usr/local/go/bin

RUN apt-get update && \
  apt-get -y upgrade && \
  apt-get install -y \
    curl \
    git \
    gcc \
    jq \
    openssh-client \
    python \
    python-yaml \
    ruby \
    zip \
    unzip && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* && \
  cd /usr/local && \
  curl -L https://dl.google.com/go/go${goversion}.linux-amd64.tar.gz | tar xzf -

Switch back to golang base w/ added pkgs

FROM golang:1.12.0

RUN apt-get update && \
  apt-get -y upgrade && \
  apt-get install -y \
    curl \
    git \
    jq \
    openssh-client \
    python \
    python-yaml \
    ruby \
    zip \
    unzip && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/*


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

<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="config/bootstrap.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
        <env name="APP_ENV" value="test" />
        <env name="SHELL_VERBOSITY" value="-1" />
    </php>

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

    <groups>
        <exclude>
            <group>mesh_data_import</group>
        </exclude>
    </groups>

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

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

Fix issues with ENV load order in tests

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

<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="config/bootstrap.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
        <env name="APP_ENV" value="test" />
        <!--
            temporarily add SYMFONY_DEPRECATIONS_HELPER here
            until Symfony 4.3 is released which should have have fixed
            issues with ENV loading and this can be read from .env.test again
        -->
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="99999" />
        <env name="SHELL_VERBOSITY" value="-1" />
    </php>

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

    <groups>
        <exclude>
            <group>mesh_data_import</group>
        </exclude>
    </groups>

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

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


#	@(#)Makefile	8.1 (Berkeley) 7/19/93

#CFLAGS+=-DKERBEROS
PROG=	login
MAN1=	login.1
MAN5=	login.access.5
SRCS=	login.c login_access.c login_skey.c login_fbtab.c
#klogin.c
DPADD=	${LIBUTIL} ${LIBSKEY}
#${LIBKRB} ${LIBDES}
LDADD=	-lutil -lcrypt -lskey
#-lkrb -ldes
BINOWN=	root
BINMODE=4555
CFLAGS+=	-DLOGIN_ACCESS -DSKEY -DLOGALL
INSTALLFLAGS=-fschg

.include <bsd.prog.mk>

Undo damage done between revisions 1.6 and 1.7 (Guys, please don't DAMAGE commits that have just gone in.)

# From:	@(#)Makefile	8.1 (Berkeley) 7/19/93
# $Id$

PROG=	login
MAN1=	login.1
MAN5=	login.access.5
SRCS=	login.c login_access.c login_skey.c login_fbtab.c
DPADD=	${LIBUTIL} ${LIBSKEY}
LDADD=	-lutil -lcrypt -lskey
CFLAGS+=-DLOGIN_ACCESS -DSKEY -DLOGALL

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

BINOWN=	root
BINMODE=4555
INSTALLFLAGS=-fschg

.include <bsd.prog.mk>


#	$NetBSD: Makefile,v 1.2 1995/07/03 21:23:45 cgd Exp $
# $FreeBSD$

SUBDIR=	lint1 lint2 xlint llib

build-tools:	lint1 lint2 xlint

.include <bsd.subdir.mk>

Disable llib. The previous commit does not go anywhere near far enough to enable this. 1: it was running xlint out of the object directory, which is not safe (ie: run a 5.x binary on a 4.x world - no libc.so.5, or run an alpha binary on x86). 2: lint has /usr/libexec/lint1 and /usr/libexec/lint2 hard coded in. This is the same as problem 1. 3: lint has got /usr/bin/cc hard coded in as well. Also, see problem 1. There are probably more problems, but these are enough of a showstopper.

#	$NetBSD: Makefile,v 1.2 1995/07/03 21:23:45 cgd Exp $
# $FreeBSD$

SUBDIR=	lint1 lint2 xlint #llib

build-tools:	lint1 lint2 xlint

.include <bsd.subdir.mk>


#!/bin/bash
#
# Script to run pylint on the Orca sources you've modified or added.
# See http://live.gnome.org/Orca/Pylint for more info.
#
exec_prefix=@prefix@
INSTALL_DIR=@pyexecdir@
if [ "x$*" == "x" ]
then
    FILES=`svn stat src/orca | egrep "^M|^A" | grep "[.]py$" | awk '{ print $2 }'`
else
    FILES="$*"
fi
FILES=`echo $FILES | sed 's^src/orca/^^'`
echo Thank you for your attention to quality
for foo in $FILES
do
    echo
    OUTPUT_FILE=`basename $foo .py`.pylint
    echo Checking $foo, sending output to $OUTPUT_FILE
    pylint --init-hook="import pyatspi" $INSTALL_DIR/orca/$foo > $OUTPUT_FILE 2>&1
    grep "code has been rated" $OUTPUT_FILE | cut -f1 -d\( \
    | sed "s/.pylint:Your code has been rated at / /" \
    | sed "s^/10^^" | sort -n -k 2,2
done

Add missing 'g' to sed command

#!/bin/bash
#
# Script to run pylint on the Orca sources you've modified or added.
# See http://live.gnome.org/Orca/Pylint for more info.
#
exec_prefix=@prefix@
INSTALL_DIR=@pyexecdir@
if [ "x$*" == "x" ]
then
    FILES=`svn stat src/orca | egrep "^M|^A" | grep "[.]py$" | awk '{ print $2 }'`
else
    FILES="$*"
fi
FILES=`echo $FILES | sed 's^src/orca/^^g'`
echo Thank you for your attention to quality
for foo in $FILES
do
    echo
    OUTPUT_FILE=`basename $foo .py`.pylint
    echo Checking $foo, sending output to $OUTPUT_FILE
    pylint --init-hook="import pyatspi" $INSTALL_DIR/orca/$foo > $OUTPUT_FILE 2>&1
    grep "code has been rated" $OUTPUT_FILE | cut -f1 -d\( \
    | sed "s/.pylint:Your code has been rated at / /" \
    | sed "s^/10^^" | sort -n -k 2,2
done


SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}

  # Exclude try_compile sources from coverage results:
  "/CMakeFiles/CMakeTmp/"

  # Exclude files generated by the moc pre-compiler
  ".*/moc_.*"

  # Exclude files generated by the uic pre-compiler
  ".*/ui_.*"

  # Exclude files from the Testing directories
  ".*/Testing/.*"
  )

# The following tests should not be run under valgrind
SET(CTEST_CUSTOM_MEMCHECK_IGNORE

  )

SET(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  )

Add custom ctest warning exception for Git and VTK

SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}

  # Exclude try_compile sources from coverage results:
  "/CMakeFiles/CMakeTmp/"

  # Exclude files generated by the moc pre-compiler
  ".*/moc_.*"

  # Exclude files generated by the uic pre-compiler
  ".*/ui_.*"

  # Exclude files from the Testing directories
  ".*/Testing/.*"
  )

# The following tests should not be run under valgrind
SET(CTEST_CUSTOM_MEMCHECK_IGNORE

  )

SET(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  # Git warning
  "You are in 'detached HEAD' state."
  # VTK
  "VTK/Utilities/vtktiff/"
  )


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="Bootstrap.php"
         colors="true"
         verbose="true"
         backupGlobals="false"
         backupStaticAttributes="false"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="TwbBundleTest">
            <directory suffix=".php">./TwbBundleTest/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">../src/</directory>
        </whitelist>
    </filter>
    <logging>
		<log type="coverage-clover" target="./clover.xml"/>
	</logging>
</phpunit>

Add module.php to code coverage test

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="Bootstrap.php"
         colors="true"
         verbose="true"
         backupGlobals="false"
         backupStaticAttributes="false"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="TwbBundleTest">
            <directory suffix=".php">./TwbBundleTest/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">../src/</directory>
            <file>../Module.php</file>
        </whitelist>
    </filter>
    <logging>
		<log type="coverage-clover" target="./clover.xml"/>
	</logging>
</phpunit>


[Desktop Entry]
Type=Link
Name=Configuration Panel
Name[it]=Pannello di configurazione
Icon=e-module-conf
Comment=<hilight>The E17 Configuration Panel</hilight>
Comment[it]=<hilight>Il pannello di configurazione di E17</hilight>

Add module type for conf panel.

[Desktop Entry]
Type=Link
Name=Configuration Panel
Name[it]=Pannello di configurazione
Icon=e-module-conf
Comment=<hilight>The E17 Configuration Panel</hilight>
Comment[it]=<hilight>Il pannello di configurazione di E17</hilight>
X-Enlightenment-ModuleType=config


# $FreeBSD$

INFO = bison
INFOSECTION= "Programming & development tools."
INFOENTRY_bison= "* Bison: (bison).		The GNU YACC-compatible parser generator."

.PATH: ${.CURDIR}/../../../../contrib/bison

.include <bsd.info.mk>

Use SRCDIR instead of PATH

# $FreeBSD$

INFO = bison
INFOSECTION= "Programming & development tools."
INFOENTRY_bison= "* Bison: (bison).		The GNU YACC-compatible parser generator."

SRCDIR= ${.CURDIR}/../../../../contrib/bison

.include <bsd.info.mk>


FROM csanchez/maven:3.2

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD ADD . /usr/src/app

ONBUILD RUN mvn install

Use latest as parent, can't tag properly the other versions yet

FROM csanchez/maven:latest

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD ADD . /usr/src/app

ONBUILD RUN mvn install


# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
TOP = $(realpath $(dir $(lastword $(MAKEFILE_LIST))))

# Version
VESPA_VERSION = $(shell git tag --points-at HEAD | grep -oP "\d+\.\d+\.\d+" | sort -V | tail -1)

RPMTOPDIR := $(HOME)/rpmbuild
SOURCEDIR := $(RPMTOPDIR)/SOURCES
SPECDIR := $(RPMTOPDIR)/SPECS
SPECFILE := $(SPECDIR)/vespa-$(VESPA_VERSION).spec

srpm:
	dnf install -y git rpmdevtools
	$(TOP)/../dist.sh $(VESPA_VERSION)
	spectool -g -C $(SOURCEDIR) $(SPECFILE)
	rpmbuild -bs --define "_topdir $(RPMTOPDIR)" $(SPECFILE)
	cp -a $(RPMTOPDIR)/SRPMS/* $(outdir)
clean:
	-rm -rf $(RPMTOPDIR)

.PHONY: srpm clean

Fix lazy command expansion that did not work.

# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
TOP = $(realpath $(dir $(lastword $(MAKEFILE_LIST))))

RPMTOPDIR := $(HOME)/rpmbuild
SOURCEDIR := $(RPMTOPDIR)/SOURCES
SPECDIR := $(RPMTOPDIR)/SPECS
SPECFILE := $(SPECDIR)/vespa-$(VESPA_VERSION).spec

srpm:
	dnf install -y git rpmdevtools
	$(TOP)/../dist.sh $$(git tag --points-at HEAD | grep -oP "\d+\.\d+\.\d+" | sort -V | tail -1)
	spectool -g -C $(SOURCEDIR) $(SPECFILE)
	rpmbuild -bs --define "_topdir $(RPMTOPDIR)" $(SPECFILE)
	cp -a $(RPMTOPDIR)/SRPMS/* $(outdir)
clean:
	-rm -rf $(RPMTOPDIR)

.PHONY: srpm clean


#	$Id: Makefile,v 1.7 1994/08/24 21:17:33 paul Exp $

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

.include <bsd.subdir.mk>

Add texinfo to the list of SUBDIR targets.

#	$Id: Makefile,v 1.8 1994/09/09 19:48:23 paul Exp $

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

.include <bsd.subdir.mk>


FROM ubuntu:16.04

RUN apt-get update
RUN apt-get install -y curl xvfb chromium-browser firefox ruby ruby-dev

WORKDIR /usr/src/app

RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - \
    && apt-get install -y nodejs \
    && rm -rf /var/lib/apt/lists

RUN gem install sass

RUN npm install --global eslint bower gulp && echo '{ "allow_root": true }' > /root/.bowerrc

# Add Chromium and Firefox with xvfb for karma tests

ADD xvfb-chromium /usr/bin/xvfb-chromium
RUN chmod +x /usr/bin/xvfb-chromium
ENV CHROMIUM_BIN=/usr/bin/xvfb-chromium

ADD xvfb-firefox /usr/bin/xvfb-firefox
RUN chmod +x /usr/bin/xvfb-firefox
ENV FIREFOX_BIN=/usr/bin/xvfb-firefox

Add yarn to node docker image

FROM ubuntu:16.04

RUN apt-get update
RUN apt-get install -y curl xvfb chromium-browser firefox ruby ruby-dev

WORKDIR /usr/src/app

RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - \
    && apt-get install -y nodejs \
    && rm -rf /var/lib/apt/lists

RUN gem install sass

RUN npm install --global eslint bower gulp && echo '{ "allow_root": true }' > /root/.bowerrc

# Add Chromium and Firefox with xvfb for karma tests

ADD xvfb-chromium /usr/bin/xvfb-chromium
RUN chmod +x /usr/bin/xvfb-chromium
ENV CHROMIUM_BIN=/usr/bin/xvfb-chromium

ADD xvfb-firefox /usr/bin/xvfb-firefox
RUN chmod +x /usr/bin/xvfb-firefox
ENV FIREFOX_BIN=/usr/bin/xvfb-firefox

# Install yarn

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install yarn


[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
_Name=Midori
_GenericName=Web Browser
_Comment=Lightweight web browser
Categories=GTK;Network;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;
Exec=midori %u
Icon=midori
Terminal=false
StartupNotify=true

Remove the Encoding key from the Desktop file

[Desktop Entry]
Version=1.0
Type=Application
_Name=Midori
_GenericName=Web Browser
_Comment=Lightweight web browser
Categories=GTK;Network;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;
Exec=midori %u
Icon=midori
Terminal=false
StartupNotify=true


FROM node:10

RUN apt update
RUN apt install -y tar curl lftp

# create app directory
RUN mkdir -p /root/cli

COPY package.json /root/package.json
COPY cli/package.json /root/cli/package.json

WORKDIR /root/cli
RUN npm install

WORKDIR /root
RUN npm install

WORKDIR /

CMD [ "bash" ]

Add missing 'main' file of tuvero/cli

FROM node:10

RUN apt update
RUN apt install -y tar curl lftp

# create app directory
RUN mkdir -p /root/cli/bin

COPY package.json /root/package.json
COPY cli/package.json /root/cli/package.json
COPY cli/bin/tuvero.js /root/cli/bin/tuvero.js

WORKDIR /root/cli
RUN npm install

WORKDIR /root
RUN npm install

WORKDIR /

CMD [ "bash" ]


#
# Makefile for INFO files
#

INFOFILES+= dir info.info makeinfo.info texi.info texi.info-1 texi.inf-2
INFOFILES+= texi.info-3 texi.info-4 texi.info-5 texi.info-6 texi.info-7
INFOFILES+= texi.info-8 texi.info-9 texi.info-10 texi.info-11

install:
	mkdir -p ${INFODIR}
	install -g ${BINGRP} -o ${BINOWN} -m 444 ${INFOFILES} ${INFODIR}

clean:
cleandir:
obj:

.include <bsd.prog.mk>

Fix typo, add -c to install so that files aren't moved out on first install! :-)

#
# Makefile for INFO files
#

INFOFILES+= dir info.info makeinfo.info texi.info texi.info-1 texi.info-2
INFOFILES+= texi.info-3 texi.info-4 texi.info-5 texi.info-6 texi.info-7
INFOFILES+= texi.info-8 texi.info-9 texi.info-10 texi.info-11

install:
	mkdir -p ${INFODIR}
	install -c -g ${BINGRP} -o ${BINOWN} -m 444 ${INFOFILES} ${INFODIR}

clean cleandir obj:
	@echo -n

.include <bsd.prog.mk>


[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


#! /bin/sh
srcdir=@abs_srcdir@
PACKAGE=@PACKAGE@
VERSION=@VERSION@

if test -f $srcdir/.git/HEAD; then
    GIT_REPO="$srcdir/.git"
    GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe`
elif test -f $srcdir/CLOOG_HEAD; then
    GIT_HEAD_ID=`cat $srcdir/CLOOG_HEAD`
else
    GIT_HEAD_ID="$PACKAGE-$VERSION-UNKNOWN"
fi

echo $GIT_HEAD_ID | sed -e 's/cloog-//'

Use git option rev-parse instead of non-working option describe in genversion

#! /bin/sh
srcdir=@abs_srcdir@
PACKAGE=@PACKAGE@
VERSION=@VERSION@

if test -f $srcdir/.git/HEAD; then
    GIT_REPO="$srcdir/.git"
    GIT_HEAD_ID="$PACKAGE-$VERSION-`GIT_DIR=$GIT_REPO git rev-parse --short HEAD`"
elif test -f $srcdir/CLOOG_HEAD; then
    GIT_HEAD_ID=`cat $srcdir/CLOOG_HEAD`
else
    GIT_HEAD_ID="$PACKAGE-$VERSION-UNKNOWN"
fi

echo $GIT_HEAD_ID | sed -e 's/cloog-//'


FROM ubuntu:18.04

ENV PATH "/root/.pony/ponyup/bin:$PATH"

RUN apt-get update \
 && apt-get install -y \
    curl

RUN curl -s --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ponylang/ponyup/master/ponyup-init.sh | sh \
 && ponyup update ponyc nightly --libc=gnu \
 && ponyup update stable nightly --libc=gnu \
 && ponyup update corral nightly --libc=gnu

CMD ponyc

Allow gnu latest images to be used with the Pony playground

FROM ubuntu:18.04

ENV PATH "/root/.pony/ponyup/bin:$PATH"

RUN apt-get update \
 && apt-get install -y \
    curl \
    g++

RUN curl -s --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ponylang/ponyup/master/ponyup-init.sh | sh \
 && ponyup update ponyc nightly --libc=gnu \
 && ponyup update stable nightly --libc=gnu \
 && ponyup update corral nightly --libc=gnu

CMD ponyc


# $FreeBSD$

PROG=	ancontrol
MAN=	ancontrol.8

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

WARNS=2

.include <bsd.prog.mk>

Make spacing consistant and set WARNS correctly.

# $FreeBSD$

PROG=		ancontrol
MAN=		ancontrol.8

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

WARNS?=		2

.include <bsd.prog.mk>


FROM golang:alpine
WORKDIR /go/src/github.com/verygoodsoftwarenotvirus/dairycart

ADD api .
COPY vendor vendor
ENTRYPOINT ["go", "test", "-v"]

Add coverage statment to unit tests

FROM golang:alpine
WORKDIR /go/src/github.com/verygoodsoftwarenotvirus/dairycart

ADD api .
COPY vendor vendor
ENTRYPOINT ["go", "test", "-v", "-cover"]


FROM hub.alterway.fr/php:5.6-fpm

RUN apt-get update && \
    apt-get install -y \
        mysql-client \
        git \
        subversion \
        curl \
        wget && \
    rm -rf /var/lib/apt/lists/* && \
    chmod a+w -R $PHP_INI_DIR/conf.d/ /etc/ssmtp && \
    wget https://getcomposer.org/download/1.0.0-alpha11/composer.phar -O /usr/local/bin/composer && \
    chmod a+rx /usr/local/bin/composer

Add autoconfig php-fpm.conf with prefix PHPFPM__ - allow all user for extra packages

FROM hub.alterway.fr/php:5.6-fpm

RUN apt-get update && \
    apt-get install -y \
        mysql-client \
        git \
        subversion \
        curl \
        wget && \
    rm -rf /var/lib/apt/lists/* && \
    chmod a+w -R $PHP_INI_DIR/conf.d/ /etc/ssmtp /usr/local/etc/php-fpm.d && \
    wget https://getcomposer.org/download/1.0.0-alpha11/composer.phar -O /usr/local/bin/composer && \
    chmod a+rx /usr/local/bin/composer


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

<phpunit
        bootstrap="./tests/bootstrap.php"
        colors="true"
        beStrictAboutTestsThatDoNotTestAnything="true"
        checkForUnintentionallyCoveredCode="true"
        beStrictAboutTestSize="true"
        beStrictAboutChangesToGlobalState="true">
    <testsuites>
        <testsuite name="unit">
            <directory suffix="Test.php">./tests/Unit</directory>
        </testsuite>
        <testsuite name="functional">
            <directory suffix="Test.php">./tests/Functional</directory>
        </testsuite>
    </testsuites>

    <php>
        <server name="KERNEL_CLASS" value="MediaMonks\SonataMediaBundle\Tests\App\AppKernel"/>
    </php>

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

Add KERNEL_DIR back in for symfony versions <3.3

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

<phpunit
        bootstrap="./tests/bootstrap.php"
        colors="true"
        beStrictAboutTestsThatDoNotTestAnything="true"
        checkForUnintentionallyCoveredCode="true"
        beStrictAboutTestSize="true"
        beStrictAboutChangesToGlobalState="true">
    <testsuites>
        <testsuite name="unit">
            <directory suffix="Test.php">./tests/Unit</directory>
        </testsuite>
        <testsuite name="functional">
            <directory suffix="Test.php">./tests/Functional</directory>
        </testsuite>
    </testsuites>

    <php>
        <server name="KERNEL_DIR" value="./tests/Functional/app/"/>
        <server name="KERNEL_CLASS" value="MediaMonks\SonataMediaBundle\Tests\App\AppKernel"/>
    </php>

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


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         verbose="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutChangesToGlobalState="true"
         beStrictAboutCoversAnnotation="true">
    <testsuites>
        <testsuite name="Rinvex Authy Unit Test Suite">
            <directory>tests/Unit</directory>
        </testsuite>
        <testsuite name="Rinvex Authy Integration Test Suite">
            <directory>tests/Integration</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/</directory>
        </whitelist>
    </filter>
    <logging>
        <log type="tap" target="build/report.tap"/>
        <log type="junit" target="build/report.junit.xml"/>
        <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
        <log type="coverage-text" target="build/coverage.txt"/>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>

Test some PHPUnit config variations

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         verbose="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="Rinvex Authy Unit Test Suite">
            <directory>tests/Unit</directory>
        </testsuite>
        <testsuite name="Rinvex Authy Integration Test Suite">
            <directory>tests/Integration</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/</directory>
        </whitelist>
    </filter>
    <logging>
        <log type="tap" target="build/report.tap"/>
        <log type="junit" target="build/report.junit.xml"/>
        <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
        <log type="coverage-text" target="build/coverage.txt"/>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>


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

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

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

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

Update phpunit directory list to cover.

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

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

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

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


#!/bin/bash

PROG="@top_builddir@/test/test_axi_ns_con_cyl_flow"

INPUT="@top_srcdir@/test/input_files/axi_con_cyl_flow.in"

# A MOAB preconditioner
PETSC_OPTIONS="-pc_type asm -pc_asm_overlap 12 -sub_pc_type ilu -sub_pc_factor_mat_ordering_type 1wd -sub_pc_factor_levels 4"

${LIBMESH_RUN:-} $PROG $INPUT $PETSC_OPTIONS

Fix test that was failing with PETSc >= 3.6.x

#!/bin/bash

PROG="@top_builddir@/test/test_axi_ns_con_cyl_flow"

INPUT="@top_srcdir@/test/input_files/axi_con_cyl_flow.in"

# A MOAB preconditioner
PETSC_OPTIONS="-pc_type asm -pc_asm_overlap 12 -sub_pc_type ilu -sub_pc_factor_mat_ordering_type 1wd -sub_pc_factor_levels 4 -sub_pc_factor_shift_type nonzero"

${LIBMESH_RUN:-} $PROG $INPUT $PETSC_OPTIONS


TC_NAME = syno-$(TC_ARCH)

TC_ARCH = avoton
TC_VERS = 5.1
TC_FIRMWARE = 5.1-5004

TC_DIST_NAME = gcc473_glibc217_x86_64_avoton-GPL.tgz

TC_EXT = tgz
TC_DIST_SITE = http://sourceforge.net/projects/dsgpl/files/DSM%205.1%20Tool%20Chains/Intel%20x86%20Linux%203.2.40%20%28Avoton%29

TC_BASE_DIR = x86_64-pc-linux-gnu
TC_PREFIX = x86_64-pc-linux-gnu
TC_TARGET = x86_64-pc-linux-gnu

TC_CFLAGS =
TC_CPPFLAGS =
TC_CXXFLAGS =
TC_LDFLAGS =

FIX_TARGET = myFix

include ../../mk/spksrc.tc.mk

.PHONY: myFix
myFix:
	chmod -R u+w $(WORK_DIR)
	@find $(WORK_DIR)/$(TC_BASE_DIR) -type f -name '*.la' -exec sed -i -e "s|^libdir=.*$$|libdir='$(WORK_DIR)/$(TC_BASE_DIR)/$(TC_BASE_DIR)/lib'|" {} \;

Stop repo from seeing Avoton as non-x64 compatible

TC_NAME = syno-$(TC_ARCH)

TC_ARCH = avoton
TC_VERS = 5.1
TC_FIRMWARE = 5.0-4458

TC_DIST_NAME = gcc473_glibc217_x86_64_avoton-GPL.tgz

TC_EXT = tgz
TC_DIST_SITE = http://sourceforge.net/projects/dsgpl/files/DSM%205.1%20Tool%20Chains/Intel%20x86%20Linux%203.2.40%20%28Avoton%29

TC_BASE_DIR = x86_64-pc-linux-gnu
TC_PREFIX = x86_64-pc-linux-gnu
TC_TARGET = x86_64-pc-linux-gnu

TC_CFLAGS =
TC_CPPFLAGS =
TC_CXXFLAGS =
TC_LDFLAGS =

FIX_TARGET = myFix

include ../../mk/spksrc.tc.mk

.PHONY: myFix
myFix:
	chmod -R u+w $(WORK_DIR)
	@find $(WORK_DIR)/$(TC_BASE_DIR) -type f -name '*.la' -exec sed -i -e "s|^libdir=.*$$|libdir='$(WORK_DIR)/$(TC_BASE_DIR)/$(TC_BASE_DIR)/lib'|" {} \;


#
#

PROG= tperl

SRCS+= array.c cmd.c cons.c consarg.c
SRCS+= doarg.c doio.c dolist.c dump.c
SRCS+= eval.c form.c hash.c malloc.c
SRCS+= perl.c perly.c regcomp.c regexec.c
SRCS+= stab.c str.c toke.c util.c
SRCS+= usersub.c
.PATH: ${.CURDIR}/../perl

CFLAGS+= -I${.CURDIR}/../perl -DTAINT
LDADD+= -lm
DPADD= ${LIBM}

LDADD+= -lcrypt
DPADD+= ${LIBCRYPT}

MAN1=
MLINKS+= perl.1 tperl.1
MLINKS+= perl.1 taintperl.1

.include "../../Makefile.inc"
.include <bsd.prog.mk>

Make link to tperl4.036, needed for suid scripts and other stuff which use tperl$]

#
#

PROG= tperl
LINKS= ${BINDIR}/tperl ${BINDIR}/tperl4.036

SRCS+= array.c cmd.c cons.c consarg.c
SRCS+= doarg.c doio.c dolist.c dump.c
SRCS+= eval.c form.c hash.c malloc.c
SRCS+= perl.c perly.c regcomp.c regexec.c
SRCS+= stab.c str.c toke.c util.c
SRCS+= usersub.c
.PATH: ${.CURDIR}/../perl

CFLAGS+= -I${.CURDIR}/../perl -DTAINT
LDADD+= -lm
DPADD= ${LIBM}

LDADD+= -lcrypt
DPADD+= ${LIBCRYPT}

MAN1=
MLINKS+= perl.1 tperl.1
MLINKS+= perl.1 taintperl.1

.include "../../Makefile.inc"
.include <bsd.prog.mk>


from saltstack/ubuntu-12.10-minimal
MAINTAINER SaltStack, Inc.

# Install Dependencies
RUN apt-get install -y -o DPkg::Options::=--force-confold python-setuptools

# Install Salt
RUN easy_install https://github.com/saltstack/salt/archive/develop.tar.gz

Upgrade system, install deps and bootstrap salt

from saltstack/ubuntu-12.10-minimal
MAINTAINER SaltStack, Inc.

# Upgrade System and Install dependencies
RUN apt-get update && \
  apt-get upgrade -y -o DPkg::Options::=--force-confold && \
  apt-get install -y -o DPkg::Options::=--force-confold curl

# Install Latest Salt from the Develop Branch
RUN curl -L http://bootstrap.saltstack.org | sh -s -- git develop


FROM alpine

COPY . /pufferpanel/
RUN ls -l /pufferpanel/
RUN echo '{}' > /pufferpanel/config.json

ENV PATH "/pufferpanel:${PATH}"
EXPOSE 8080

CMD ["pufferpanel"]

Switch base image Alpine doesn't handle libc the same as ubuntu, so when we build on ubuntu, we can't reuse that image

FROM debian:10-slim

COPY pufferpanel /pufferpanel/
COPY client/dist /pufferpanel/client/dist/
RUN echo '{}' > /pufferpanel/config.json

ENV PATH "/pufferpanel:${PATH}"
EXPOSE 8080

CMD ["pufferpanel"]


set(@EXPORT_PACKAGE_NAME_UPPER@_VERSION @VERSION@)
@PACKAGE_INIT@

if(NOT TARGET @EXPORT_PACKAGE_LIB_NAME@)
  include("${CMAKE_CURRENT_LIST_DIR}/@EXPORT_PACKAGE_LIB_NAME@-exports.cmake")
  set_target_properties(@EXPORT_PACKAGE_LIB_NAME@ PROPERTIES INTERFACE_LINK_LIBRARIES "")
endif()

set_and_check(@EXPORT_PACKAGE_NAME_UPPER@_INCLUDE_DIR "@INSTALL_INC_DIR@")
set(@EXPORT_PACKAGE_NAME_UPPER@_LIBRARY @EXPORT_PACKAGE_LIB_NAME@)
set(@EXPORT_PACKAGE_NAME_UPPER@_LIBRARIES ${@EXPORT_PACKAGE_NAME_UPPER@_LIBRARY})
set(@EXPORT_PACKAGE_NAME_UPPER@_INCLUDE_DIRS ${@EXPORT_PACKAGE_NAME_UPPER@_INCLUDE_DIR})
check_required_components(@EXPORT_PACKAGE_NAME_UPPER@)

Fix include imported libraries. Fix gdal python binding for OS X. Enhance tools.py in borsch

set(@EXPORT_PACKAGE_NAME_UPPER@_VERSION @VERSION@)
@PACKAGE_INIT@

if(NOT TARGET @EXPORT_PACKAGE_LIB_NAME@)
    file (READ "${CMAKE_CURRENT_LIST_DIR}/@EXPORT_PACKAGE_LIB_NAME@-exports.cmake" _file_content)
    string (REPLACE "IMPORTED)" "IMPORTED GLOBAL)" _file_content "${_file_content}")
    file(WRITE "${CMAKE_CURRENT_LIST_DIR}/@EXPORT_PACKAGE_LIB_NAME@-exports.cmake" "${_file_content}")

    include("${CMAKE_CURRENT_LIST_DIR}/@EXPORT_PACKAGE_LIB_NAME@-exports.cmake")
    set_target_properties(@EXPORT_PACKAGE_LIB_NAME@ PROPERTIES INTERFACE_LINK_LIBRARIES "")
endif()

set_and_check(@EXPORT_PACKAGE_NAME_UPPER@_INCLUDE_DIR "@INSTALL_INC_DIR@")
set(@EXPORT_PACKAGE_NAME_UPPER@_LIBRARY @EXPORT_PACKAGE_LIB_NAME@)
set(@EXPORT_PACKAGE_NAME_UPPER@_LIBRARIES ${@EXPORT_PACKAGE_NAME_UPPER@_LIBRARY})
set(@EXPORT_PACKAGE_NAME_UPPER@_INCLUDE_DIRS ${@EXPORT_PACKAGE_NAME_UPPER@_INCLUDE_DIR})
check_required_components(@EXPORT_PACKAGE_NAME_UPPER@)


INFO = gcc cpp reno gxxint

.include <bsd.info.mk>

Fix dependencies for gcc.info and reno.info. `make depend' doesn't handle info files although texinfo supports @include.

INFO = gcc cpp reno gxxint

gcc.info: gcc.texi invoke.texi install.texi extend.texi rtl.texi md.texi \
	  tm.texi

reno.info: reno.texi templates.texi gpcompare.texi

.include <bsd.info.mk>


#!/bin/sh

PATH="@ATFBIN@:${PATH}"
export PATH

if [ -n "@ATFBIN@" ]
then
	atf-run > atf.out
        status=$?
        atf-report < atf.out
        [ $status -eq 0 ] && rm -f atf.out
fi

Add back the "| cat" so that output files don't get truncated

#!/bin/sh

PATH="@ATFBIN@:${PATH}"
export PATH

if [ -n "@ATFBIN@" ]
then
	atf-run > atf.out
	status=$?

        # | cat is there to force non-fancy output
	atf-report < atf.out | cat

	[ $status -eq 0 ] && rm -f atf.out
fi


  <% has_checked = false
  @product.variants.active(current_currency).each_with_index do |v,index|
    next if v.option_values.empty? || (!v.in_stock? && !Spree::Config[:show_zero_stock_products])
    checked = !has_checked && (v.in_stock? || Spree::Config[:allow_backorders])
    has_checked = true if checked %>

      <%= radio_button_tag "products[#{@product.id}]", v.id, checked, :disabled => !v.in_stock? && !Spree::Config[:allow_backorders], 'data-price' => v.price_in(current_currency).display_price %>
      <label for="<%= ['products', @product.id, v.id].join('_') %>">

          <%= variant_options v %>

        <% if variant_price v %>
          <%= variant_price v %>
        <% end %>

  <% end%>

Remove references to :show_zero_stock_products and :allow_backorders. Instead use can_supply to determine which variants to grey out.

  <% has_checked = false
  @product.variants.active(current_currency).each_with_index do |v,index|
    next if v.option_values.empty?
    checked = !has_checked && (v.can_supply?)
    has_checked = true if checked %>

      <%= radio_button_tag "products[#{@product.id}]", v.id, checked, :disabled => !v.can_supply?, 'data-price' => v.price_in(current_currency).display_price %>
      <label for="<%= ['products', @product.id, v.id].join('_') %>">

          <%= variant_options v %>

        <% if variant_price v %>
          <%= variant_price v %>
        <% end %>

  <% end%>


PROG= a2p

SRCS+= a2p.c hash.c str.c walk.c util.c
CFLAGS+= -I${.CURDIR}/../perl

LDADD= -lm
DPADD= ${LIBM}

MAN1+= a2p.1 s2p.1 h2ph.1

beforeinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/s2p \
		${DESTDIR}${BINDIR}
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/h2ph \
		${DESTDIR}${BINDIR}

afterinstall:
	-mkdir -p ${DESTDIR}/usr/share/perl/sys
	cd ${DESTDIR}/usr/include ; h2ph * sys/*

.include "../../Makefile.inc"
.include <bsd.prog.mk>

Add the files y.tab.h and a2p.c that get automatically generated to the CLEANFILES target. Remove the file a2p.c from the source tree, this get generated anew from a2p.y.

PROG= a2p

SRCS+= a2p.c hash.c str.c walk.c util.c
CFLAGS+= -I${.CURDIR}/../perl
CLEANFILES+= y.tab.h a2p.c

LDADD= -lm
DPADD= ${LIBM}

MAN1+= a2p.1 s2p.1 h2ph.1

beforeinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/s2p \
		${DESTDIR}${BINDIR}
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/h2ph \
		${DESTDIR}${BINDIR}

afterinstall:
	-mkdir -p ${DESTDIR}/usr/share/perl/sys
	cd ${DESTDIR}/usr/include ; h2ph * sys/*

.include "../../Makefile.inc"
.include <bsd.prog.mk>


# - Config file for the FooBar package
# It defines the following variables
#  FOOBAR_INCLUDE_DIRS - include directories for FooBar
#  FOOBAR_LIBRARIES    - libraries to link against
#  FOOBAR_EXECUTABLE   - the bar executable

# Compute paths
get_filename_component(QTKEYCHAIN_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
if(EXISTS "${QTKEYCHAIN_CMAKE_DIR}/CMakeCache.txt")
   # In build tree
   include("${QTKEYCHAIN_CMAKE_DIR}/QtKeychainBuildTreeSettings.cmake")
else()
   set(QTKEYCHAIN_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
endif()

# Our library dependencies (contains definitions for IMPORTED targets)
include("${QTKEYCHAIN_CMAKE_DIR}/QtKeychainLibraryDepends.cmake")

# These are IMPORTED targets created by FooBarLibraryDepends.cmake
set(QTKEYCHAIN_LIBRARIES qtkeychain)

Add QTKEYCHAIN_FOUND var to config file

# - Config file for the FooBar package
# It defines the following variables
#  FOOBAR_INCLUDE_DIRS - include directories for FooBar
#  FOOBAR_LIBRARIES    - libraries to link against
#  FOOBAR_EXECUTABLE   - the bar executable

# Compute paths
get_filename_component(QTKEYCHAIN_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
if(EXISTS "${QTKEYCHAIN_CMAKE_DIR}/CMakeCache.txt")
   # In build tree
   include("${QTKEYCHAIN_CMAKE_DIR}/QtKeychainBuildTreeSettings.cmake")
else()
   set(QTKEYCHAIN_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
endif()

# Our library dependencies (contains definitions for IMPORTED targets)
include("${QTKEYCHAIN_CMAKE_DIR}/QtKeychainLibraryDepends.cmake")

# These are IMPORTED targets created by FooBarLibraryDepends.cmake
set(QTKEYCHAIN_LIBRARIES qtkeychain)

set(QTKEYCHAIN_FOUND TRUE)


FROM ubuntu:artful

RUN apt-get -qq update && \
    apt-get install -y sudo docker.io git make btrfs-tools libdevmapper-dev libgpgme-dev libostree-dev

ADD https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz /tmp

RUN tar -C /usr/local -xzf /tmp/go1.8.3.linux-amd64.tar.gz && \
    rm /tmp/go1.8.3.linux-amd64.tar.gz && \
    ln -s /usr/local/go/bin/* /usr/local/bin/

Update Go from 1.8.3 to 1.9.2

FROM ubuntu:artful

RUN apt-get -qq update && \
    apt-get install -y sudo docker.io git make btrfs-tools libdevmapper-dev libgpgme-dev libostree-dev

ADD https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz /tmp

RUN tar -C /usr/local -xzf /tmp/go1.9.2.linux-amd64.tar.gz && \
    rm /tmp/go1.9.2.linux-amd64.tar.gz && \
    ln -s /usr/local/go/bin/* /usr/local/bin/


# - Config file for the FADTTS package
# It defines the following variables
#  FADTTS_INCLUDE_DIRS - include directories
#  FADTTS_LIBRARIES    - libraries generated by FADTTS
#  FADTTS_EXECUTABLES   - the FADTTS executable

# Compute paths

get_filename_component(FADTTS_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)

string(REPLACE ${INSTALL_CMAKE_DIR}
       "" FADTTS_INSTALL_DIR
       ${FADTTS_CMAKE_DIR})

file(TO_CMAKE_PATH "${FADTTS_CMAKE_DIR}/../../../include" FADTTS_INCLUDE_DIRS)
file(TO_CMAKE_PATH "${FADTTS_INSTALL_DIR}/../../lib" FADTTS_LIBRARY_DIRS)

link_directories(${FADTTS_LIBRARY_DIRS})

set(FADTTS_LIBRARIES @FADTTS_LIBRARIES@)

find_program(FADTTSter_EXECUTABLE
  NAMES FADTTSter
  PATHS
    "${FADTTS_INSTALL_DIR}/../../../bin"
  NO_DEFAULT_PATH
  )

message(STATUS "FADTTS found!")
message(STATUS "\t FADTTSter_EXECUTABLE=" ${FADTTSter_EXECUTABLE})
message(STATUS "\t FADTTS_INCLUDE_DIRS=" ${FADTTS_INCLUDE_DIRS})
message(STATUS "\t FADTTS_LIBRARIES=" ${FADTTS_LIBRARIES})
message(STATUS "\t FADTTS_LIBRARY_DIRS=" ${FADTTS_LIBRARY_DIRS})

Modify configuration file for superbuild find

# - Config file for the FADTTS package
# It defines the following variables
#  FADTTS_INCLUDE_DIRS - include directories
#  FADTTS_LIBRARIES    - libraries generated by FADTTS
#  FADTTS_EXECUTABLES   - the FADTTS executable

# Compute paths

get_filename_component(FADTTS_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)

file(TO_CMAKE_PATH "${FADTTS_CMAKE_DIR}/../../../include" FADTTS_INCLUDE_DIRS)
file(TO_CMAKE_PATH "${FADTTS_CMAKE_DIR}/../../" FADTTS_LIBRARY_DIRS)

link_directories(${FADTTS_LIBRARY_DIRS})

set(FADTTS_LIBRARIES FADTTSterLib)

find_program(FADTTSter_EXECUTABLE
  NAMES FADTTSter
  PATHS
    "${FADTTS_CMAKE_DIR}/../../../bin"
  NO_DEFAULT_PATH
  )

message(STATUS "\t FADTTSter_EXECUTABLE=" ${FADTTSter_EXECUTABLE})
message(STATUS "\t FADTTS_INCLUDE_DIRS=" ${FADTTS_INCLUDE_DIRS})
message(STATUS "\t FADTTS_LIBRARIES=" ${FADTTS_LIBRARIES})
message(STATUS "\t FADTTS_LIBRARY_DIRS=" ${FADTTS_LIBRARY_DIRS})


#!/bin/sh

# This script overload the dynamic library path.

appname=$(basename $0 | sed s,\.sh$,,)
dirname=$(dirname $0)
case "$dirname" in
    /*)
	dirname="$PWD/$dirname"
	;;
esac
paths="$dirname/../lib/$appname"
LD_LIBRARY_PATH="$paths"
export LD_LIBRARY_PATH
DYLD_LIBRARY_PATH="$paths"
export DYLD_LIBRARY_PATH
"$dirname/$appname" $*

Resolve links pointing to wrapper script.

#!/bin/sh

# This script overload the dynamic library path.

# Resolve links referring to me.
if test -L "$0"; then
    exec $(readlink -f "$0")
fi

appname=$(basename $0 | sed s,\.sh$,,)
dirname=$(dirname $0)
case "$dirname" in
    /*)
	dirname="$PWD/$dirname"
	;;
esac
paths="$dirname/../lib/$appname"
LD_LIBRARY_PATH="$paths"
export LD_LIBRARY_PATH
DYLD_LIBRARY_PATH="$paths"
export DYLD_LIBRARY_PATH
"$dirname/$appname" $*


# $FreeBSD$

.include <bsd.own.mk>

SUBDIR=	lib add create delete info updating version

.include <bsd.subdir.mk>

CP=	/bin/cp
RM=	/bin/rm
TAR=	/usr/bin/tar

DATE!=	grep PKG_INSTALL_VERSION ${.CURDIR}/lib/lib.h | sed 's|.*[ 	]||'

distfile: clean
	@(cd ${.CURDIR}/..; \
		${CP} -r pkg_install pkg_install-${DATE}; \
		${TAR} -czf pkg_install/pkg_install-${DATE}.tar.gz \
			--exclude .#* --exclude *~ --exclude CVS \
			--exclude pkg_install-*.tar.gz pkg_install-${DATE}; \
		${RM} -rf pkg_install-${DATE})

Exclude .svn directories from generated distfile.

# $FreeBSD$

.include <bsd.own.mk>

SUBDIR=	lib add create delete info updating version

.include <bsd.subdir.mk>

CP=	/bin/cp
RM=	/bin/rm
TAR=	/usr/bin/tar

DATE!=	grep PKG_INSTALL_VERSION ${.CURDIR}/lib/lib.h | sed 's|.*[ 	]||'

distfile: clean
	@(cd ${.CURDIR}/..; \
		${CP} -r pkg_install pkg_install-${DATE}; \
		${TAR} -czf pkg_install/pkg_install-${DATE}.tar.gz \
			--exclude .#* --exclude *~ --exclude CVS \
			--exclude .svn --exclude pkg_install-*.tar.gz \
			pkg_install-${DATE}; \
		${RM} -rf pkg_install-${DATE})


IMAGE := ip.jog.li
VERSION := 0.2

GCR_HOST := eu.gcr.io
GCP_PROJECT := ipjogli

all: build

build:
	docker build -t $(IMAGE):$(VERSION) .

run:
	docker run -p 8000:8000 $(IMAGE):$(VERSION)

push:
	docker tag $(IMAGE):$(VERSION) $(GCR_HOST)/$(GCP_PROJECT)/$(IMAGE):$(VERSION)
	gcloud docker -- push $(GCR_HOST)/$(GCP_PROJECT)/$(IMAGE):$(VERSION)

Bump Docker image version to 0.3.0

IMAGE := ip.jog.li
VERSION := 0.3.0

GCR_HOST := eu.gcr.io
GCP_PROJECT := ipjogli

all: build

build:
	docker build -t $(IMAGE):$(VERSION) .

run:
	docker run -p 8000:8000 $(IMAGE):$(VERSION)

push:
	docker tag $(IMAGE):$(VERSION) $(GCR_HOST)/$(GCP_PROJECT)/$(IMAGE):$(VERSION)
	gcloud docker -- push $(GCR_HOST)/$(GCP_PROJECT)/$(IMAGE):$(VERSION)


<?xml version="1.0" encoding="utf-8"?>
<phpunit
	bootstrap="test/bootstrap.php"
	colors="true"
	stopOnError="false"
	stopOnFailure="false"
	stopOnSkipped="false"
	stopOnIncomplete="false"
	backupGlobals="false"
	processIsolation="false"
	strict="true"
	verbose="false"
	mapTestClassNameToCoveredClassName="true"
>
	<testsuites>
		<testsuite name="bee4/events">
			<directory>test/units</directory>
		</testsuite>
	</testsuites>
	<filter>
		<whitelist>
			<directory suffix=".php">./src</directory>
		</whitelist>
	</filter>
	<logging>
		<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
	</logging>
</phpunit>

Remove deprecated strict configuration for PHPUnit

<?xml version="1.0" encoding="utf-8"?>
<phpunit
	bootstrap="test/bootstrap.php"
	colors="true"
	stopOnError="false"
	stopOnFailure="false"
	stopOnSkipped="false"
	stopOnIncomplete="false"
	backupGlobals="false"
	processIsolation="false"
	verbose="false"
	mapTestClassNameToCoveredClassName="true"
>
	<testsuites>
		<testsuite name="bee4/events">
			<directory>test/units</directory>
		</testsuite>
	</testsuites>
	<filter>
		<whitelist>
			<directory suffix=".php">./src</directory>
		</whitelist>
	</filter>
	<logging>
		<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
	</logging>
</phpunit>


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

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <testsuites>
        <testsuite name="Symfony HttpFoundation 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 HttpFoundation 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>


<phpunit bootstrap="./vendor/autoload.php"
    colors="true"
    convertErrorsToExceptions="true"
    convertNoticesToExceptions="true"
    convertWarningsToExceptions="true"
    verbose="true"
    stopOnFailure="false"
    processIsolation="false"
    backupGlobals="false"
    syntaxCheck="true">
    <testsuites>
        <testsuite>
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Add whitelist to build code coverage

<phpunit bootstrap="./vendor/autoload.php"
    colors="true"
    convertErrorsToExceptions="true"
    convertNoticesToExceptions="true"
    convertWarningsToExceptions="true"
    verbose="true"
    stopOnFailure="false"
    processIsolation="false"
    backupGlobals="false"
    syntaxCheck="true">
    <testsuites>
        <testsuite>
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">./sources</directory>
        </whitelist>
    </filter>
</phpunit>


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

Exclude tests from code coverage for php function mocking

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


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

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

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

  <php>
    <server name="HONEYBADGER_API_KEY" value="change me!" />
  </php>

  <filter>
    <whitelist>
      <directory>./lib</directory>
    </whitelist>

    <blacklist>
      <directory>./vendor</directory>
    </blacklist>
  </filter>

  <logging>
    <log type="coverage-html" target="./coverage" charset="UTF-8"
         highlight="false" lowUpperBound="70" highLowerBound="80"/>
  </logging>

</phpunit>

Comment out api key setting in distributed phpunit config

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

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

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

  <php>
    <!-- <server name="HONEYBADGER_API_KEY" value="change me!" /> -->
  </php>

  <filter>
    <whitelist>
      <directory>./lib</directory>
    </whitelist>

    <blacklist>
      <directory>./vendor</directory>
    </blacklist>
  </filter>

  <logging>
    <log type="coverage-html" target="./coverage" charset="UTF-8"
         highlight="false" lowUpperBound="70" highLowerBound="80"/>
  </logging>

</phpunit>


PROG=	top

TOPDIR=	${.CURDIR}/../../contrib/top
.PATH:	${TOPDIR}

CFLAGS+= -DHAVE_GETOPT -I${.CURDIR} -I${TOPDIR} -DORDER

#
# The table size should be a prime number approximately twice as
# large as the number of lines in /etc/passwd.  The default number
# is 20011, use /etc/make.conf to override this.
#
.if defined(TOP_TABLE_SIZE)
CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}"
.endif

SRCS=	commands.c display.c machine.c screen.c top.c \
	username.c utils.c version.c

CLEANFILES+= top.1
DPADD=  ${LIBTERMCAP} ${LIBM} ${LIBKVM}
LDADD=  -ltermcap -lm -lkvm
BINGRP= kmem
BINMODE=2555

top.1:	${TOPDIR}/top.X top.local.1
	cat ${.ALLSRC} > top.1

.include <bsd.prog.mk>

Remove directive to install top as group kmem. Remove directive to install top with setgid bit.

# $FreeBSD$
PROG=	top

TOPDIR=	${.CURDIR}/../../contrib/top
.PATH:	${TOPDIR}

CFLAGS+= -DHAVE_GETOPT -I${.CURDIR} -I${TOPDIR} -DORDER

#
# The table size should be a prime number approximately twice as
# large as the number of lines in /etc/passwd.  The default number
# is 20011, use /etc/make.conf to override this.
#
.if defined(TOP_TABLE_SIZE)
CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}"
.endif

SRCS=	commands.c display.c machine.c screen.c top.c \
	username.c utils.c version.c

CLEANFILES+= top.1
DPADD=  ${LIBTERMCAP} ${LIBM} ${LIBKVM}
LDADD=  -ltermcap -lm -lkvm

top.1:	${TOPDIR}/top.X top.local.1
	cat ${.ALLSRC} > top.1

.include <bsd.prog.mk>


FROM alpine:3.3

MAINTAINER Ricardo Quintaniha <ricardo.aquintanilha@gmail.com>

RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories;

RUN apk add --update php \
    php-cli \
    php-pdo \
    php-pdo_sqlite \
    php-pdo_mysql \
    php-pdo_pgsql \
    php-redis@testing \
    php-memcached@testing \
    php-json \
    php-openssl \
    php-dev \
    php-curl \
    php-mcrypt \
    php-phar \
    php-xdebug@testing \
    && rm -rf /var/cache/apk/* /var/tmp/* /tmp/*

RUN sed -i 's/display_errors = Off/display_errors = On/g' /etc/php/php.ini \
    && sed -i 's/extension/zend_extension/g' /etc/php/conf.d/xdebug.ini

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

Change composer installation for the new

FROM alpine:3.3

MAINTAINER Ricardo Quintaniha <ricardo.aquintanilha@gmail.com>

RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories;

RUN apk add --update php \
    php-cli \
    php-pdo \
    php-pdo_sqlite \
    php-pdo_mysql \
    php-pdo_pgsql \
    php-redis@testing \
    php-memcached@testing \
    php-json \
    php-openssl \
    php-dev \
    php-curl \
    php-mcrypt \
    php-phar \
    php-xdebug@testing \
    && rm -rf /var/cache/apk/* /var/tmp/* /tmp/*

RUN sed -i 's/display_errors = Off/display_errors = On/g' /etc/php/php.ini \
    && sed -i 's/extension/zend_extension/g' /etc/php/conf.d/xdebug.ini

RUN php -r "readfile('https://getcomposer.org/installer', false, stream_context_create(['ssl' => ['verify_peer' => false, 'verify_peer_name' => false]]));" > composer-setup.php \
    && php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === 'fd26ce67e3b237fffd5e5544b45b0d92c41a4afe3e3f778e942e43ce6be197b9cdc7c251dcde6e2a52297ea269370680') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); }" \
    && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
    && php -r "unlink('composer-setup.php');"


[Desktop Entry]
Version=1.0
Type=Application
_Name=Midori
_GenericName=Web Browser
_X-GNOME-Fullname=Midori Web Browser
_Comment=Browse the Web
_X-GNOME-Keywords=Internet;WWW;Explorer
_X-AppInstall-Keywords=Internet;WWW;Explorer
Categories=GTK;Network;WebBrowser;
MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo;image/svg+xml;
Exec=midori %U
Icon=midori
Terminal=false
StartupNotify=true
X-Osso-Type=application/x-executable
X-Osso-Service=midori
Actions=TabNew;WindowNew;Private;

[Desktop Action TabNew]
_Name=New Tab
Exec=midori -e TabNew

[Desktop Action WindowNew]
_Name=New Window
Exec=midori -e WindowNew

[Desktop Action Private]
_Name=New Private Browsing Window
Exec=midori --private

Add X-GNOME-UsesNotifications to indicate the use of notifications

[Desktop Entry]
Version=1.0
Type=Application
_Name=Midori
_GenericName=Web Browser
_X-GNOME-Fullname=Midori Web Browser
_Comment=Browse the Web
_X-GNOME-Keywords=Internet;WWW;Explorer
_X-AppInstall-Keywords=Internet;WWW;Explorer
Categories=GTK;Network;WebBrowser;
MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo;image/svg+xml;
Exec=midori %U
Icon=midori
Terminal=false
StartupNotify=true
X-GNOME-UsesNotifications=true
X-Osso-Type=application/x-executable
X-Osso-Service=midori
Actions=TabNew;WindowNew;Private;

[Desktop Action TabNew]
_Name=New Tab
Exec=midori -e TabNew

[Desktop Action WindowNew]
_Name=New Window
Exec=midori -e WindowNew

[Desktop Action Private]
_Name=New Private Browsing Window
Exec=midori --private


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

<!-- http://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                   = "bootstrap.php.cache" >

    <testsuites>
        <testsuite name="Project Test Suite">
            <directory>../src/*Bundle/Tests</directory>
            <directory>../src/*/*Bundle/Tests</directory>
            <directory>../src/*/Bundle/*Bundle/Tests</directory>
        </testsuite>
    </testsuites>

    <!--
    <php>
        <server name="KERNEL_DIR" value="/path/to/your/app/" />
    </php>
    -->

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

</phpunit>

Add the tests directory to the test suite

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

<!-- http://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                   = "bootstrap.php.cache" >

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

    <!--
    <php>
        <server name="KERNEL_DIR" value="/path/to/your/app/" />
    </php>
    -->

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

</phpunit>


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

Change workdir in dockerfile to match lxd

FROM python:3.7-slim

WORKDIR /root

COPY ./requirements.txt /root/requirements.txt

# TODO: copy in permanent code run stuff?

# TODO remove requirements.txt?

# ENTRYPOINT ["bash"]

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


FROM ubuntu:17.04

RUN \
  apt-get update -qq && \
  apt-get install -y --no-install-recommends \
  build-essential \
  ca-certificates \
  curl \
  libssl-dev \
  libsqlite3-dev \
  pkg-config \
  sqlite3

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly

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

Add pg support to Rust image

FROM ubuntu:17.04

RUN \
  apt-get update -qq && \
  apt-get install -y --no-install-recommends \
  build-essential \
  ca-certificates \
  curl \
  libpq-dev \
  libsqlite3-dev \
  libssl-dev \
  pkg-config \
  sqlite3

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly

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


#
# $Id$
#

.PATH:	${.CURDIR}/../cc_int
PROG =	cc
SRCS =	gcc.c obstack.c version.c
BINDIR=	/usr/bin

.include <bsd.prog.mk>

Add LINKS to get gcc back.

#
# $Id: Makefile,v 1.5 1994/09/18 22:35:46 wollman Exp $
#

.PATH:	${.CURDIR}/../cc_int
PROG =	cc
SRCS =	gcc.c obstack.c version.c
BINDIR=	/usr/bin

LINKS=  ${BINDIR}/cc ${BINDIR}/gcc

.include <bsd.prog.mk>


compile: Cassandra.js cassandra_types.js

gen-nodejs:
	thrift --gen js:node cassandra.thrift

cassandra_types.js: gen-nodejs
	cp gen-nodejs/cassandra_types.js .
	patch -p1 < patches/cassandra_types.patch

Cassandra.js: gen-nodejs
	cp gen-nodejs/Cassandra.js .
	patch -p1 < patches/Cassandra.patch

clean_compile:
	rm -rf gen-nodejs

clean: clean_compile
	rm Cassandra.js cassandra_types.js

.PHONY: clean

Add clean_compile make target to .PHONY list

compile: Cassandra.js cassandra_types.js

gen-nodejs:
	thrift --gen js:node cassandra.thrift

cassandra_types.js: gen-nodejs
	cp gen-nodejs/cassandra_types.js .
	patch -p1 < patches/cassandra_types.patch

Cassandra.js: gen-nodejs
	cp gen-nodejs/Cassandra.js .
	patch -p1 < patches/Cassandra.patch

clean_compile:
	rm -rf gen-nodejs

clean: clean_compile
	rm Cassandra.js cassandra_types.js

.PHONY: clean clean_compile


<?xml version="1.0"?>
<ruleset name="guzzle-log-middleware-codestyle">
    <description>The coding standard of this package</description>
    <arg value="p" />

    <config name="ignore_warnings_on_exit" value="1" />

    <rule ref="./vendor/webthink/codesniffer/src/Webthink/ruleset.xml">
        <exclude name="Generic.Files.LineLength.TooLong" />
        <exclude name="Generic.Strings.UnnecessaryStringConcat" />
        <exclude name="Webthink.Formatting.UseInAlphabeticalOrder.UseInAlphabeticalOrder" />
    </rule>
    <rule ref="Generic.CodeAnalysis.EmptyStatement">
        <exclude-pattern>/tests/</exclude-pattern>
    </rule>
    <rule ref="Generic.Metrics.CyclomaticComplexity">
        <properties>
            <property name="complexity" value="5" />
            <property name="absoluteComplexity" value="10" />
        </properties>
    </rule>
    <rule ref="Squiz.Strings.DoubleQuoteUsage" />
</ruleset>

Remove phpcs rule about docblocs

<?xml version="1.0"?>
<ruleset name="guzzle-log-middleware-codestyle">
    <description>The coding standard of this package</description>
    <arg value="p" />

    <config name="ignore_warnings_on_exit" value="1" />

    <rule ref="./vendor/webthink/codesniffer/src/Webthink/ruleset.xml">
        <exclude name="Generic.Files.LineLength.TooLong" />
        <exclude name="Generic.Strings.UnnecessaryStringConcat" />
        <exclude name="PEAR.Commenting.FunctionComment" />
        <exclude name="Webthink.Formatting.UseInAlphabeticalOrder.UseInAlphabeticalOrder" />
    </rule>
    <rule ref="Generic.CodeAnalysis.EmptyStatement">
        <exclude-pattern>/tests/</exclude-pattern>
    </rule>
    <rule ref="Generic.Metrics.CyclomaticComplexity">
        <properties>
            <property name="complexity" value="5" />
            <property name="absoluteComplexity" value="10" />
        </properties>
    </rule>
    <rule ref="Squiz.Strings.DoubleQuoteUsage" />
</ruleset>


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

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