sudo: false

language: php

cache:
    directories:
        - $HOME/.composer/cache
        - $HOME/protobuf

php:
    - 5.6
    - 7.0
    - 7.1
    - hhvm
    - nightly

matrix:
    allow_failures:
        - php: nightly

env:
    - PROTOBUF_VERSION=3.0.0

before_install:
    - bash .travis/install.sh

install:
    - composer self-update
    - composer --prefer-source install
    - export PATH=$PATH:$HOME/protobuf/$PROTOBUF_VERSION/bin/

before_script:
    - vendor/bin/protobuf --include-descriptors -i . -o tests/ tests/ClearCode/Protobuf/Tests/fixtures/DummyMessage.proto

script:
    - vendor/bin/phpunit -c phpunit.xml


sudo: false

language: php

cache:
    directories:
        - $HOME/.composer/cache
        - $HOME/protobuf

php:
    - 5.6
    - 7.0
    - 7.1
    - hhvm
    - nightly

matrix:
    allow_failures:
        - php: nightly

env:
    - PROTOBUF_VERSION=3.0.0

before_install:
    - bash .travis/install.sh

install:
    - composer self-update
    - composer install -o
    - export PATH=$PATH:$HOME/protobuf/$PROTOBUF_VERSION/bin/

before_script:
    - vendor/bin/protobuf --include-descriptors -i . -o tests/ tests/ClearCode/Protobuf/Tests/fixtures/DummyMessage.proto

script:
    - vendor/bin/phpunit -c phpunit.xml


Switch to regular composer install
Switch to regular composer install
