2019-12-02 18:22:57 +00:00
|
|
|
dist: bionic
|
2017-06-21 00:23:13 +00:00
|
|
|
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
|
2019-12-02 18:22:57 +00:00
|
|
|
dist: trusty
|
2017-06-21 00:23:13 +00:00
|
|
|
- php: 5.5
|
2019-12-02 18:22:57 +00:00
|
|
|
dist: trusty
|
2017-06-21 00:23:13 +00:00
|
|
|
- php: 5.6
|
2019-12-02 18:22:57 +00:00
|
|
|
dist: xenial
|
2017-06-21 00:23:13 +00:00
|
|
|
- php: 7.0
|
2019-12-02 18:22:57 +00:00
|
|
|
dist: xenial
|
2017-06-21 00:23:13 +00:00
|
|
|
- php: 7.1
|
2017-11-25 20:47:20 +00:00
|
|
|
- php: 7.2
|
2018-12-23 22:43:13 +00:00
|
|
|
- php: 7.3
|
2019-11-30 15:43:00 +00:00
|
|
|
- php: 7.4
|
2017-06-21 00:23:13 +00:00
|
|
|
- php: nightly
|
2019-12-02 18:22:57 +00:00
|
|
|
- php: hhvm-3.24 # until Dec 2018
|
2019-02-21 09:35:11 +00:00
|
|
|
- php: hhvm-3.27 # until Sep 2019
|
|
|
|
- php: hhvm-3.30 # until Nov 2019
|
2017-06-21 00:23:13 +00:00
|
|
|
|
2019-11-03 19:03:48 +00:00
|
|
|
# Branch deployment stage
|
|
|
|
- stage: deploy-branch
|
|
|
|
if: type == "push" && tag IS blank
|
2019-12-02 18:28:16 +00:00
|
|
|
php: 5.3
|
|
|
|
dist: precise
|
2019-11-03 19:03:48 +00:00
|
|
|
install:
|
|
|
|
- '[[ ",$DEPLOY_PHPDOC_BRANCHES," == *,"$TRAVIS_BRANCH",* ]] || travis_terminate 0'
|
|
|
|
- install.sh --deploy
|
|
|
|
script:
|
|
|
|
- deploy-branch.sh
|
|
|
|
|
|
|
|
# Release deployment stage
|
|
|
|
- stage: deploy-release
|
|
|
|
if: tag IS present
|
2019-10-26 12:00:45 +00:00
|
|
|
php: 5.3
|
|
|
|
dist: precise
|
2017-06-21 00:23:13 +00:00
|
|
|
install:
|
2017-11-05 01:36:50 +00:00
|
|
|
- install.sh --deploy
|
2017-06-21 00:23:13 +00:00
|
|
|
script:
|
2019-11-03 19:03:48 +00:00
|
|
|
- '[ "$PROJECT_REPO_TAG" == "v$(php -r "require_once(\"lib/Pico.php\"); echo Pico::VERSION;")" ]'
|
|
|
|
- deploy-release.sh
|
2017-06-21 00:23:13 +00:00
|
|
|
before_deploy:
|
2019-11-03 20:18:28 +00:00
|
|
|
- release.sh "$PROJECT_REPO_TAG"
|
2017-06-21 00:23:13 +00:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: ${GITHUB_OAUTH_TOKEN}
|
2019-08-29 14:42:18 +00:00
|
|
|
file:
|
2019-11-03 19:03:48 +00:00
|
|
|
- pico-release-$PROJECT_REPO_TAG.tar.gz
|
|
|
|
- pico-release-$PROJECT_REPO_TAG.zip
|
2017-06-21 00:23:13 +00:00
|
|
|
skip_cleanup: true
|
2019-11-03 19:03:48 +00:00
|
|
|
name: Version ${PROJECT_REPO_TAG:1}
|
2017-10-28 20:53:25 +00:00
|
|
|
draft: true
|
2019-11-04 00:49:03 +00:00
|
|
|
on:
|
|
|
|
tags: true
|
2017-06-21 00:23:13 +00:00
|
|
|
|
|
|
|
# Ignore nightly build failures
|
2015-11-25 19:04:46 +00:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
2019-11-03 19:03:48 +00:00
|
|
|
fast_finish: true
|
2015-11-25 19:04:46 +00:00
|
|
|
|
2017-06-13 23:44:09 +00:00
|
|
|
before_install:
|
2017-12-02 16:17:41 +00:00
|
|
|
- export PICO_TOOLS_DIR="$HOME/__picocms_tools"
|
|
|
|
- git clone --branch="$TOOLS_REPO_BRANCH" "https://github.com/$TOOLS_REPO_SLUG.git" "$PICO_TOOLS_DIR"
|
|
|
|
- . "$PICO_TOOLS_DIR/init/travis.sh.inc"
|
2019-11-03 19:03:48 +00:00
|
|
|
- . "$PICO_PROJECT_DIR/.build/init.sh.inc"
|
2017-06-13 23:44:09 +00:00
|
|
|
|
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
|
|
|
|
2015-10-28 02:20:37 +00:00
|
|
|
script:
|
2019-11-03 19:03:48 +00:00
|
|
|
- phpcs --standard=.phpcs.xml "$PICO_PROJECT_DIR"
|