Pico/.travis.yml
Daniel Rudolf f1fc4c979e Revert commit a068850
According to travis-ci/travis-ci#2111 and some own testing, it isn't possible to combine branch whitelists with tag-based auto deployment. Unfortunately it is necessary to whitelist the gh-pages branch, because Travis implicitly blacklists it.
2015-10-29 01:19:43 +01:00

30 lines
566 B
YAML

language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7
- hhvm
- nightly
script:
- find . -type f -name '*.php' -print0 | xargs -0 -I file php -l file > /dev/null
before_deploy:
- composer install
- tar -czf "pico-$TRAVIS_TAG.tar.gz" .htaccess README.md changelog.txt composer.json composer.lock license.txt config content-sample lib plugins themes vendor index.php
deploy:
provider: releases
api_key: ${GITHUB_OAUTH_TOKEN}
file: pico-$TRAVIS_TAG.tar.gz
skip_cleanup: true
on:
repo: picocms/Pico
tags: true
php: 5.3
sudo: false