language: php
php:
  - 5.6
  - 5.5

services:
  - memcached

script: phpunit --configuration tests/phpunit.xml

after_success:
  # CREATE GIT TAG
  - git config --global user.email "builds@travis-ci.com"
  - git config --global user.name "Travis CI"
  - export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
  - echo -n $GIT_TAG > public/version
  - git commit -m "Set build VERSION number" public/version
  - git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
  - git push --quiet https://$GITHUBKEY@github.com/clickalicious/Memcached.php $GIT_TAG > /dev/null 2>&1

branches:
  except:
    - /^build-[0-9a-z\-]*/

language: php
php:
  - 5.6
  - 5.5

services:
  - memcached

script: phpunit --configuration tests/phpunit.xml

after_success:
  # CREATE GIT TAG
  - git config --global user.email "builds@travis-ci.com"
  - git config --global user.name "Travis CI"
  - export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
  - echo -n $GIT_TAG > public/version
  - git commit -m "Set build VERSION number" public/version
  - git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
  #- git push --quiet https://$GITHUBKEY@github.com/clickalicious/Memcached.php $GIT_TAG > /dev/null 2>&1
  - git push --tags --quiet https://$GITHUBKEY@github.com/clickalicious/Memcached.php

branches:
  except:
    - /^build-[0-9a-z\-]*/

Fix for Travis-CI tag push
Fix for Travis-CI tag push
