Pico/.travis.yml
Daniel Rudolf 2982f5deb9 Optimize composer autoloader before deploying
This converts PSR-0/PSR-4 autoloading to classmap to get a faster autoloader (up to 20% performance increase)
2015-11-24 19:49:16 +01:00

31 lines
631 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
- composer dump-autoload --optimize
- tar -czf "pico-release-$TRAVIS_TAG.tar.gz" .htaccess README.md CHANGELOG.md CONTRIBUTING.md composer.json composer.lock LICENSE config content-sample lib plugins themes vendor index.php
deploy:
provider: releases
api_key: ${GITHUB_OAUTH_TOKEN}
file: pico-release-$TRAVIS_TAG.tar.gz
skip_cleanup: true
on:
repo: picocms/Pico
tags: true
php: 5.3
sudo: false