Skip to content

Commit

Permalink
let travis only test next php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeutz committed Mar 31, 2018
1 parent 9b68e2c commit 76c834f
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 176 deletions.
30 changes: 7 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,23 @@ sudo: false

language: php

env:
global:
- RUN_UNIT_TESTS="yes"
- INSTALL_MEMCACHE="yes"
- INSTALL_MEMCACHED="yes"
- INSTALL_REDIS="yes"

matrix:
fast_finish: true
include:
- php: 7.0
env: INSTALL_APCU="yes" INSTALL_MEMCACHE="no" INSTALL_LIBSODIUM="yes"
- php: 7.1
env: INSTALL_APCU="yes" INSTALL_MEMCACHE="no" INSTALL_LIBSODIUM="yes"
- php: 7.2
env: INSTALL_APCU="yes" INSTALL_MEMCACHE="no" INSTALL_LIBSODIUM="no"
- php: nightly
env: INSTALL_APCU="yes" INSTALL_MEMCACHE="no" INSTALL_MEMCACHED="no" INSTALL_LIBSODIUM="no"
allow_failures:
- php: 7.2
- php: nightly

services:
- memcache
- memcached
- redis-server

before_script:
# Make sure all dev dependencies are installed
- if [[ $RUN_UNIT_TESTS == "yes" ]]; then bash build/travis/unit-tests.sh $PWD; fi
# Abort travis execution if setup fails
- set -e
# Disable xdebug.
- phpenv config-rm xdebug.ini || echo "xdebug not available"
# Make sure all dev dependencies are installed, ignore platform requirements because Travis is missing the LDAP tooling on all new images
- composer install --ignore-platform-reqs

script:
- if [[ $RUN_UNIT_TESTS == "yes" ]]; then libraries/vendor/bin/phpunit --configuration travisci-phpunit.xml; fi
- libraries/vendor/bin/phpunit --configuration ./libraries/vendor/joomla/test-unit/phpunit.xml.dist

branches:
except:
Expand Down
18 changes: 0 additions & 18 deletions build/travis/apache2/php-apache

This file was deleted.

46 changes: 0 additions & 46 deletions build/travis/codeception-tests.sh

This file was deleted.

20 changes: 0 additions & 20 deletions build/travis/javascript-tests.sh

This file was deleted.

12 changes: 0 additions & 12 deletions build/travis/php-apache.sh

This file was deleted.

2 changes: 0 additions & 2 deletions build/travis/phpenv/apc-5.3.ini

This file was deleted.

2 changes: 0 additions & 2 deletions build/travis/phpenv/apc-5.4.ini

This file was deleted.

2 changes: 0 additions & 2 deletions build/travis/phpenv/apcu.ini

This file was deleted.

1 change: 0 additions & 1 deletion build/travis/phpenv/memcache.ini

This file was deleted.

1 change: 0 additions & 1 deletion build/travis/phpenv/memcached.ini

This file was deleted.

1 change: 0 additions & 1 deletion build/travis/phpenv/redis.ini

This file was deleted.

48 changes: 0 additions & 48 deletions build/travis/unit-tests.sh

This file was deleted.

0 comments on commit 76c834f

Please sign in to comment.