aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml32
1 files changed, 24 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 8d0cf817..d5355820 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,12 @@ language: php
3# faster builds on docker-container setup 3# faster builds on docker-container setup
4sudo: false 4sudo: false
5 5
6# used for HHVM
7addons:
8 apt:
9 packages:
10 - tidy
11
6# cache vendor dirs 12# cache vendor dirs
7cache: 13cache:
8 directories: 14 directories:
@@ -13,29 +19,39 @@ php:
13 - 5.4 19 - 5.4
14 - 5.5 20 - 5.5
15 - 5.6 21 - 5.6
22 - 7.0
16 - hhvm 23 - hhvm
17 - nightly 24
25env:
26 - DB=mysql
27 - DB=pgsql
28 - DB=sqlite
18 29
19matrix: 30matrix:
20 fast_finish: true 31 fast_finish: true
32 exclude:
33 - php: hhvm
34 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
21 allow_failures: 35 allow_failures:
36 - php: 7.0
22 - php: hhvm 37 - php: hhvm
23 - php: nightly
24 38
25branches: 39branches:
26 only: 40 only:
27 - v2 41 - v2
28 42
29install: 43before_script:
30 - composer self-update 44 - composer self-update
31 45 - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
32# build coverage only on one build, to speed up results feedbacks 46 # disable xdebug since we don't use code-coverage for now
33# before_script: 47 - if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi
48 # build coverage only on one build, to speed up results feedbacks
34 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi; 49 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
50 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
35 51
36script: 52script:
37 - ant prepare 53 - ant prepare-$DB
38 - bin/phpunit --exclude-group command-doctrine --debug $PHPUNIT_FLAGS 54 - bin/phpunit --exclude-group command-doctrine -v
39 55
40# after_script: 56# after_script:
41 # - | 57 # - |