sudo: required
services:
  - docker

language: php

php:
  - 5.5
  - 5.6
  - 7.0

cache: false

env:
  global:
    - PRODUCT=php-phalcon
    - ENABLED_BRANCHES="master"
    - RELEASE=0
  matrix:
    - OS=ubuntu DIST=trusty PACK=deb PACKAGECLOUD_REPO="phalcon/dist"

matrix:
  fast_finish: true
  allow_failures:
    - env: OS=ubuntu DIST=trusty PACK=deb

before_script:
  - export LAST_COMMIT=$(cd cphalcon; git rev-parse --short=8 HEAD)
  - export PARTIAL_VERSION=$(cd cphalcon; cat config.json | jq ".version" | sed -E 's/\"//g')
  - export VERSION="$PARTIAL_VERSION-$RELEASE-$LAST_COMMIT"

script:
  - git clone https://github.com/tarantool/build.git
  - build/pack/travis.sh

notifications:
  email:
    recipients:
      - serghei@phalconphp.com
    on_success: change
    on_failure: always

sudo: required
services:
  - docker

language: php

php:
  - 5.5
  - 5.6
  #- 7.0

cache: false

env:
  global:
    - PRODUCT=php-phalcon
    - ENABLED_BRANCHES="master"
    - RELEASE=0
    - PACKAGECLOUD_REPO="phalcon/stable"
  matrix:
    - OS=ubuntu DIST=precise PACK=deb
    - OS=ubuntu DIST=trusty PACK=deb
    - OS=ubuntu DIST=wily PACK=deb

matrix:
  fast_finish: true
  allow_failures:
    - env: OS=ubuntu DIST=precise PACK=deb
    - env: OS=ubuntu DIST=trusty PACK=deb
    - env: OS=ubuntu DIST=wily PACK=deb

before_script:
  - export LAST_COMMIT=$(cd cphalcon; git rev-parse --short=8 HEAD)
  - export PARTIAL_VERSION=$(cd cphalcon; cat config.json | jq ".version" | sed -E 's/\"//g')
  - export VERSION="$PARTIAL_VERSION-$RELEASE-$LAST_COMMIT"
  - echo $TRAVIS_BUILD_NUMBER
  - echo $TRAVIS_BUILD_ID

script:
  - git clone https://github.com/tarantool/build.git
  - build/pack/travis.sh

notifications:
  email:
    recipients:
      - serghei@phalconphp.com
    on_success: change
    on_failure: always

Enable building for precise && wily
Enable building for precise && wily
