cache:
  paths:
  - vendor/

before_script:
- if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
- apt-get update -yqq
- apt-get install git -yqq
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install

test:php5.6:
  image: php:5.6
  script:
  - ./vendor/bin/phpunit

test:php7:
  image: php:7
  script:
  - ./vendor/bin/phpunit

test:php7.1:
  image: php:7.1
  script:
  - ./vendor/bin/phpunit

test:php7.2:
  image: php:7.2
  script:
  - ./vendor/bin/phpunit

cache:
  paths:
  - vendor/

before_script:
- if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
- apk add --update git
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install

test:php5.6:
  image: php:5.6-alpine
  script:
  - ./vendor/bin/phpunit

test:php7:
  image: php:7-alpine
  script:
  - ./vendor/bin/phpunit

test:php7.1:
  image: php:7.1-alpine
  script:
  - ./vendor/bin/phpunit

test:php7.2:
  image: php:7.2-alpine
  script:
  - ./vendor/bin/phpunit

Replace images with alpine ver
Replace images with alpine ver
