# Select image from https://hub.docker.com/_/php/
image: php:5.6

# Select what we should cache
cache:
  paths:
  - vendor/

before_script:
# Install git, the php image doesn't have installed
- apt-get update -yqq
- apt-get install git -yqq

# Install composer
- curl -sS https://getcomposer.org/installer | php

# Install all project dependencies
- php composer.phar install

# We test PHP5.6 (the default)
test:mysql:
  script:
  - app/vendor/bin/phpunit

# We test PHP7, but we allow it to fail
test:php7:
  image: php:7
  script:
  - app/vendor/bin/phpunit
  allow_failure: true


# Select what we should cache
cache:
  paths:
  - app/vendor/

before_script:
# Install git, the php image doesn't have installed
- apt-get update -yqq
- apt-get install git -yqq

# Install composer
- curl -sS https://getcomposer.org/installer | php

# Install all project dependencies
- php composer.phar install

test:php5.5:
  image: php:5.5
  script:
  - app/vendor/bin/phpunit

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

# We test PHP7, but we allow it to fail
test:php7:
  image: php:7
  script:
  - app/vendor/bin/phpunit


Change cache path and add php5.5 build
Change cache path and add php5.5 build
