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