Commit 0213ead5 authored by TheBigB's avatar TheBigB
Browse files

Adding Gitlab CI configuration

parent 148c2edc
Pipeline #4004531 failed with stage
in 1 minute and 1 second
#!/bin/bash
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
set -xe
apk add --no-cache git unzip curl $PHPIZE_DEPS
# Python tools to run the test HTTP API
apk add --no-cache python-dev py-pip py-gunicorn
pip install httpbin
curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
chmod +x /usr/local/bin/phpunit
curl --location --output /usr/local/bin/composer https://getcomposer.org/composer.phar
chmod +x /usr/local/bin/composer
echo "date.timezone = UTC" >> /usr/local/etc/php/conf.d/test.ini
pecl install xdebug
docker-php-ext-enable xdebug
before_script:
- apk add --no-cache bash &> /dev/null
- bash .ci/docker_install.sh &> /dev/null
test:5.6:
image: php:5.6-alpine
script:
- composer install &> /dev/null
- phpunit --configuration phpunit.xml
test:7.0:
image: php:7.0-alpine
script:
- composer install &> /dev/null
- phpunit --configuration phpunit.xml
coverage:
image: php:7.0-alpine
script:
- composer install &> /dev/null
- phpunit --coverage-text --colors=never --configuration phpunit.xml
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment