stages:
    - test
    - coding-style

cache:
    paths:
        - vendor/

before_script:
    - apt-get update -yqq
    - apt-get install -yqq git libmcrypt-dev libpq-dev libcurl4-gnutls-dev libicu-dev libvpx-dev libjpeg-dev libpng-dev libxpm-dev zlib1g-dev libfreetype6-dev libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev unixodbc-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev
    - docker-php-ext-install mbstring mcrypt pdo_pgsql curl json intl gd xml zip bz2 opcache
    - pecl install xdebug
    - docker-php-ext-enable xdebug
    - curl -sS https://getcomposer.org/installer | php
    - php composer.phar install

test:php7.0:
    image: php:7.0
    stage: test
    script:
        - vendor/bin/tester -p phpdbg -s ./tests
    tags:
        - linux
        - amd64

test:php7.1:
    image: php:7.1
    stage: test
    script:
        - vendor/bin/tester -p phpdbg -s ./tests
    tags:
        - linux
        - amd64

coding-style:
    image: php:7.1
    stage: coding-style
    script:
        - php composer.phar install-cs
        - php composer.phar check-cs
    tags:
        - linux
        - amd64

Add a basic configuration of GitLab CI
Add a basic configuration of GitLab CI

Signed-off-by: Roman Ondráček <f226ca4e9e6347db373d27b729024cc130f78ec9@iqrf.com>
