Skip to content

Commit

Permalink
Merge pull request #4851 from wp-cli/4748-split-off-bundle
Browse files Browse the repository at this point in the history
Refactoring `wp-cli/wp-cli` to represent the framework only, not the bundle
  • Loading branch information
schlessera committed Aug 3, 2018
2 parents b32cd0f + 5f08f07 commit 96c46cc
Show file tree
Hide file tree
Showing 49 changed files with 2,714 additions and 6,240 deletions.
81 changes: 43 additions & 38 deletions .travis.yml
Expand Up @@ -2,68 +2,73 @@ sudo: false
dist: trusty

language: php
php: 7.1
php: 7.2

notifications:
email:
on_success: never
on_failure: change

branches:
only:
- master

cache:
directories:
- $HOME/.composer/cache

env:
global:
- WP_CLI_BIN_DIR=/tmp/wp-cli-phar
- PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
- WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"

before_install:
- |
# Remove Xdebug for a huge performance increase:
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
phpenv config-rm xdebug.ini
else
echo "xdebug.ini does not exist"
fi
- |
# Raise PHP memory limit to 2048MB
echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer validate

before_script:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- ./ci/prepare.sh
install:
- composer install
- composer prepare-tests

script:
- composer phpunit
- composer behat

jobs:
include:
- stage: sniff
script: ./ci/sniff.sh
script:
- composer lint
- composer phpcs
env: BUILD=sniff
- stage: test
script: ./ci/test.sh
php: 7.2
env: WP_VERSION=latest
- stage: test
script: ./ci/test.sh
php: 7.1
env: WP_VERSION=latest
- stage: test
script: ./ci/test.sh
php: 7.0
env: WP_VERSION=latest
- stage: test
script: ./ci/test.sh
php: 5.6
env: WP_VERSION=latest
- stage: test
script: ./ci/test.sh
php: 5.6
env: WP_VERSION=trunk
- stage: test
script: ./ci/test.sh
php: 5.6
env: WP_VERSION=latest BUILD=git WP_CLI_BIN_DIR=''
env: WP_VERSION=3.7.11
- stage: test
script: ./ci/test.sh
php: 5.6
env: WP_VERSION=3.7.11
env: WP_VERSION=trunk
- stage: test
script: ./ci/test.sh
php: 5.3
php: 5.4
dist: precise
env: WP_VERSION=3.7.11
- stage: deploy
env: DEPLOY_BRANCH=master
script: ./ci/deploy.sh

cache:
directories:
- $HOME/.composer/cache

branches:
only:
- master
- /^release-.+$/

notifications:
email:
on_success: never
on_failure: change
env: WP_VERSION=latest
85 changes: 0 additions & 85 deletions ci/behat-tags.php

This file was deleted.

56 changes: 0 additions & 56 deletions ci/deploy.sh

This file was deleted.

40 changes: 0 additions & 40 deletions ci/prepare.sh

This file was deleted.

6 changes: 0 additions & 6 deletions ci/sniff.sh

This file was deleted.

15 changes: 0 additions & 15 deletions ci/test.sh

This file was deleted.

0 comments on commit 96c46cc

Please sign in to comment.