Pico/.travis.yml

53 lines
1.5 KiB
YAML
Raw Normal View History

2015-10-28 02:20:37 +00:00
language: php
php:
- 5.3
2015-10-28 02:20:37 +00:00
- 5.4
- 5.5
- 5.6
- 7
- hhvm
- nightly
2015-10-28 02:20:37 +00:00
matrix:
allow_failures:
- php: nightly
fast-finish: true
install:
- composer install
before_script:
- export PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
2015-10-28 02:20:37 +00:00
script:
2015-11-25 19:37:45 +00:00
- find . -not \( -path './vendor' -prune \) -type f -name '*.php' -print0 | xargs -0 -I file php -l file > /dev/null
after_success:
- |
2015-11-25 19:59:29 +00:00
[[ ",$DEPLOY_PHPDOC_BRANCHES," == *,"$TRAVIS_BRANCH",* ]] && [ "$TRAVIS_PHP_VERSION" == "5.3" ] && (
2015-11-25 20:36:56 +00:00
[ "$TRAVIS_SECURE_ENV_VARS" == "true" ] && [ -z "$TRAVIS_TAG" ] && (
2015-11-25 20:55:28 +00:00
./build/generate-phpdoc.sh . "build/phpdoc-master" "Pico 1.0 API Documentation (master)"
./build/deploy-phpdoc.sh "$TRAVIS_REPO_SLUG" "build/phpdoc-master" "master@$TRAVIS_COMMIT" "phpDoc/master" "gh-pages"
)
)
before_deploy:
- |
[ "$DEPLOY_PHPDOC_TAGS" == "true" ] && (
2015-11-25 20:55:28 +00:00
./build/generate-phpdoc.sh . "build/phpdoc-$TRAVIS_TAG" "Pico 1.0 API Documentation ($TRAVIS_TAG)"
./build/deploy-phpdoc.sh "$TRAVIS_REPO_SLUG" "build/phpdoc-$TRAVIS_TAG" "$TRAVIS_TAG" "phpDoc/$TRAVIS_TAG" "gh-pages"
)
- composer install --no-dev --optimize-autoloader
2015-11-23 20:46:36 +00:00
- tar -czf "pico-release-$TRAVIS_TAG.tar.gz" README.md LICENSE CONTRIBUTING.md CHANGELOG.md composer.json composer.lock config content-sample lib plugins themes vendor .htaccess index.php
2015-10-28 02:20:37 +00:00
deploy:
provider: releases
api_key: ${GITHUB_OAUTH_TOKEN}
file: pico-release-$TRAVIS_TAG.tar.gz
2015-10-28 02:20:37 +00:00
skip_cleanup: true
on:
tags: true
php: 5.3
sudo: false