2015-01-30 09:09:53 +01:00
|
|
|
language: php
|
2015-01-31 09:15:51 +01:00
|
|
|
|
2016-02-15 20:35:28 +01:00
|
|
|
services:
|
|
|
|
- rabbitmq
|
|
|
|
|
2015-03-28 00:23:25 +01:00
|
|
|
# faster builds on docker-container setup
|
2015-03-27 19:47:30 +01:00
|
|
|
sudo: false
|
|
|
|
|
2015-09-28 20:35:56 +02:00
|
|
|
# used for HHVM
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- tidy
|
|
|
|
|
2015-03-28 00:23:25 +01:00
|
|
|
# cache vendor dirs
|
|
|
|
cache:
|
2016-03-20 21:10:17 +01:00
|
|
|
apt: true
|
2015-03-28 00:23:25 +01:00
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
- $HOME/.composer/cache
|
2016-03-08 17:02:34 +01:00
|
|
|
- node_modules
|
|
|
|
- $HOME/.cache/bower
|
|
|
|
- $HOME/.npm
|
2015-03-28 00:23:25 +01:00
|
|
|
|
2015-01-30 11:23:18 +01:00
|
|
|
php:
|
2015-03-28 00:23:25 +01:00
|
|
|
- 5.5
|
|
|
|
- 5.6
|
2015-09-26 11:56:15 +02:00
|
|
|
- 7.0
|
2016-08-17 11:40:35 +02:00
|
|
|
- 7.1
|
2016-05-09 10:42:11 +02:00
|
|
|
- nightly
|
2015-09-26 11:56:15 +02:00
|
|
|
|
2016-03-08 17:02:34 +01:00
|
|
|
node_js:
|
|
|
|
- "5"
|
|
|
|
|
2015-09-26 11:56:15 +02:00
|
|
|
env:
|
2016-09-09 21:30:13 +02:00
|
|
|
- DB=mysql
|
|
|
|
- DB=pgsql
|
|
|
|
- DB=sqlite
|
2015-03-27 19:58:48 +01:00
|
|
|
|
|
|
|
matrix:
|
2015-03-28 00:23:25 +01:00
|
|
|
fast_finish: true
|
2016-03-20 21:10:17 +01:00
|
|
|
include:
|
2016-06-03 14:24:54 +02:00
|
|
|
# driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
|
|
|
|
- php: hhvm-3.12
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
group: edge
|
|
|
|
env: DB=mysql
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- mysql-server-5.6
|
|
|
|
- mysql-client-core-5.6
|
|
|
|
- mysql-client-5.6
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- php: hhvm-3.12
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
group: edge
|
|
|
|
env: DB=sqlite
|
2016-03-20 21:10:17 +01:00
|
|
|
- php: 7.0
|
2016-09-09 21:30:13 +02:00
|
|
|
env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite
|
2016-03-08 17:02:34 +01:00
|
|
|
- php: 7.0
|
|
|
|
env: DB=sqlite ASSETS=build
|
2015-03-28 00:23:25 +01:00
|
|
|
allow_failures:
|
2016-06-03 14:24:54 +02:00
|
|
|
- php: hhvm-3.12
|
2016-08-24 10:49:43 +02:00
|
|
|
- php: 7.1
|
2016-08-17 11:40:35 +02:00
|
|
|
- php: nightly
|
2015-01-31 09:15:51 +01:00
|
|
|
|
2016-02-24 13:47:54 +01:00
|
|
|
# exclude v1 branches
|
2015-01-19 13:37:32 +01:00
|
|
|
branches:
|
2016-02-24 13:47:54 +01:00
|
|
|
except:
|
2016-04-18 21:46:36 +02:00
|
|
|
- legacy
|
2015-03-28 00:23:25 +01:00
|
|
|
|
2015-09-26 11:56:15 +02:00
|
|
|
before_script:
|
2016-06-03 14:24:54 +02:00
|
|
|
- PHP=$TRAVIS_PHP_VERSION
|
|
|
|
- if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
|
2016-08-17 11:40:35 +02:00
|
|
|
# xdebug isn't enable for PHP 7.1
|
2016-06-03 14:24:54 +02:00
|
|
|
- if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
|
2016-08-22 23:03:16 +02:00
|
|
|
- if [[ $PHP = 5.5 ]]; then composer require "phpunit/phpunit:4.*" --no-update; fi;
|
2016-01-21 08:59:58 +01:00
|
|
|
- composer self-update --no-progress
|
2016-09-09 21:30:13 +02:00
|
|
|
- if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
|
2015-01-31 09:15:51 +01:00
|
|
|
|
2016-03-08 17:02:34 +01:00
|
|
|
install:
|
2016-09-09 21:30:13 +02:00
|
|
|
- if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi;
|
|
|
|
- if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi;
|
2016-03-08 17:02:34 +01:00
|
|
|
|
2016-02-27 11:26:09 +01:00
|
|
|
before_install:
|
|
|
|
- if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
|
|
|
|
|
2015-01-31 09:15:51 +01:00
|
|
|
script:
|
2016-03-08 17:02:34 +01:00
|
|
|
- travis_wait bash install.sh
|
2015-09-26 11:56:15 +02:00
|
|
|
- ant prepare-$DB
|
2016-06-01 21:27:35 +02:00
|
|
|
- phpunit -v
|
2016-09-09 21:30:13 +02:00
|
|
|
- if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
|
|
|
|
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
|