2017-06-21 00:23:13 +00:00
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
|
|
|
|
2015-10-28 02:20:37 +00:00
|
|
|
language: php
|
2017-06-21 00:23:13 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache/files
|
|
|
|
|
|
|
|
jobs:
|
2017-06-12 18:11:04 +00:00
|
|
|
include:
|
2017-06-21 00:23:13 +00:00
|
|
|
# Test stage
|
2017-06-12 18:11:04 +00:00
|
|
|
- php: 5.3
|
|
|
|
dist: precise
|
2017-06-21 00:23:13 +00:00
|
|
|
- php: 5.4
|
|
|
|
- php: 5.5
|
|
|
|
- php: 5.6
|
|
|
|
- php: 7.0
|
|
|
|
- php: 7.1
|
|
|
|
- php: nightly
|
|
|
|
- php: hhvm
|
|
|
|
- php: hhvm-nightly
|
|
|
|
|
|
|
|
# Deployment stage
|
|
|
|
- stage: deploy
|
|
|
|
install:
|
|
|
|
- '[ "$TRAVIS_PULL_REQUEST" == "false" ] || travis_terminate 0'
|
|
|
|
- '[[ ",$DEPLOY_PHPDOC_BRANCHES," == *,"$TRAVIS_BRANCH",* ]] || travis_terminate 0'
|
|
|
|
- install.sh
|
|
|
|
script:
|
2017-10-22 19:15:29 +00:00
|
|
|
- deploy-branch.sh
|
2017-06-21 00:23:13 +00:00
|
|
|
|
|
|
|
# Release stage
|
|
|
|
- stage: release
|
|
|
|
install:
|
|
|
|
- '[ -n "$TRAVIS_TAG" ] || travis_terminate 0'
|
2017-10-22 19:27:19 +00:00
|
|
|
- install.sh
|
2017-06-21 00:23:13 +00:00
|
|
|
script:
|
2017-10-22 19:15:29 +00:00
|
|
|
- deploy-release.sh
|
2017-06-21 00:23:13 +00:00
|
|
|
before_deploy:
|
2017-10-22 19:27:19 +00:00
|
|
|
- create-release.sh "pico-release-$TRAVIS_TAG.tar.gz"
|
2017-06-21 00:23:13 +00:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: ${GITHUB_OAUTH_TOKEN}
|
|
|
|
file: pico-release-$TRAVIS_TAG.tar.gz
|
|
|
|
skip_cleanup: true
|
|
|
|
|
|
|
|
# Ignore nightly build failures
|
2015-11-25 19:04:46 +00:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
2016-10-11 16:21:14 +00:00
|
|
|
- php: hhvm-nightly
|
2015-11-25 19:04:46 +00:00
|
|
|
fast-finish: true
|
|
|
|
|
2017-06-13 23:44:09 +00:00
|
|
|
before_install:
|
|
|
|
- export PATH="$TRAVIS_BUILD_DIR/_build:$PATH"
|
|
|
|
|
2015-11-25 19:39:49 +00:00
|
|
|
install:
|
2017-06-13 23:44:09 +00:00
|
|
|
- install.sh
|
2015-11-25 19:39:49 +00:00
|
|
|
|
|
|
|
before_script:
|
2017-06-13 23:44:09 +00:00
|
|
|
- export PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
|
2015-11-25 19:39:49 +00:00
|
|
|
|
2015-10-28 02:20:37 +00:00
|
|
|
script:
|
2015-11-29 20:55:55 +00:00
|
|
|
- phpcs --standard=.phpcs.xml "$TRAVIS_BUILD_DIR"
|
2015-10-28 11:53:56 +00:00
|
|
|
|
2017-06-21 00:23:13 +00:00
|
|
|
notifications:
|
|
|
|
irc: "chat.freenode.net#picocms"
|