language: php

php:
  - 7
  - nightly

env:
  - TEST_SUITE="AnalyzerTest"
  - TEST_SUITE="PhanTest"
  - TEST_SUITE="RasmusTest"
  - TEST_SUITE="LanguageTest"
  - TEST_SUITE="OutputPrinterTest"

sudo: false

matrix:
  fast_finish: true
  allow_failures:
    - php: "nightly"

cache:
  directories:
    - ./vendor

before_install:
  - ./tests/setup.sh

install:
  - composer --prefer-source install

script:
  - ./vendor/bin/phpunit --colors --testsuite "$TEST_SUITE"
  - php package.php

before_deploy:
  - php package.php

deploy:
  provider: releases
  file: build/phan.phar
  skip_cleanup: true
  on:
    tags: true

language: php

php:
  - 7
  - 7.1.0RC6

env:
  - TEST_SUITE="AnalyzerTest"
  - TEST_SUITE="PhanTest"
  - TEST_SUITE="RasmusTest"
  - TEST_SUITE="LanguageTest"
  - TEST_SUITE="OutputPrinterTest"

sudo: false

matrix:
  fast_finish: true
  allow_failures:
    - php: "7.1.0RC6"

cache:
  directories:
    - ./vendor

before_install:
  - ./tests/setup.sh

install:
  - composer --prefer-source install

script:
  - ./vendor/bin/phpunit --colors --testsuite "$TEST_SUITE"
  - php package.php

before_deploy:
  - php package.php

deploy:
  provider: releases
  file: build/phan.phar
  skip_cleanup: true
  on:
    tags: true

Replace nightly CI build with 7.1RC6 CI build
Replace nightly CI build with 7.1RC6 CI build

It's a bit silly to be building phan against PHP nightly since we depend so heavily on the php-ast extension.

Instead, let's build against 7.1RC6. PHP 7.1 will be the next version of PHP that we will need to support in Phan and it's a good idea to start tracking the incompatibilities now. The 7.1RC6 build will allow failures just like the nightly build did.