]> git.immae.eu Git - github/wallabag/wallabag.git/blob - .travis.yml
Defining Github token is now useless
[github/wallabag/wallabag.git] / .travis.yml
1 language: php
2
3 # faster builds on docker-container setup
4 sudo: false
5
6 # used for HHVM
7 addons:
8 apt:
9 packages:
10 - tidy
11
12 # cache vendor dirs
13 cache:
14 directories:
15 - vendor
16 - $HOME/.composer/cache
17
18 php:
19 - 5.5
20 - 5.6
21 - 7.0
22 - hhvm
23
24 env:
25 - DB=mysql
26 - DB=pgsql
27 - DB=sqlite
28
29 matrix:
30 fast_finish: true
31 exclude:
32 - php: hhvm
33 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
34 allow_failures:
35 - php: hhvm
36
37 # exclude v1 branches
38 branches:
39 except:
40 - master
41 - dev
42
43 before_script:
44 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
45 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
46 - composer self-update --no-progress
47 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
48
49 before_install:
50 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
51
52 script:
53 - travis_wait composer update --no-interaction --no-progress
54 - ant prepare-$DB
55 - bin/phpunit -v