diff options
author | Paulino Michelazzo <paulino@michelazzo.com.br> | 2016-10-18 22:48:23 +0200 |
---|---|---|
committer | Paulino Michelazzo <paulino@michelazzo.com.br> | 2016-10-18 22:48:23 +0200 |
commit | 99731f0bb1f6fd2815eeb9af504ce86df927657b (patch) | |
tree | b080efc608d2bbd52b77a4a0067402007f50c5a8 /.travis.yml | |
parent | 3a3c6b866b52721431bed22426d9abfcd0d2dfe0 (diff) | |
parent | 7180aaed45dce62e40620a9e4b202526ebd6a3bb (diff) | |
download | wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.tar.gz wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.tar.zst wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.zip |
Merge remote-tracking branch 'wallabag/master'
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/.travis.yml b/.travis.yml index 53cf9bb5..c7bb05fb 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,5 +1,9 @@ | |||
1 | language: php | 1 | language: php |
2 | 2 | ||
3 | services: | ||
4 | - rabbitmq | ||
5 | - redis | ||
6 | |||
3 | # faster builds on docker-container setup | 7 | # faster builds on docker-container setup |
4 | sudo: false | 8 | sudo: false |
5 | 9 | ||
@@ -15,6 +19,9 @@ cache: | |||
15 | directories: | 19 | directories: |
16 | - vendor | 20 | - vendor |
17 | - $HOME/.composer/cache | 21 | - $HOME/.composer/cache |
22 | - node_modules | ||
23 | - $HOME/.cache/bower | ||
24 | - $HOME/.npm | ||
18 | 25 | ||
19 | php: | 26 | php: |
20 | - 5.5 | 27 | - 5.5 |
@@ -23,6 +30,9 @@ php: | |||
23 | - 7.1 | 30 | - 7.1 |
24 | - nightly | 31 | - nightly |
25 | 32 | ||
33 | node_js: | ||
34 | - "5" | ||
35 | |||
26 | env: | 36 | env: |
27 | - DB=mysql | 37 | - DB=mysql |
28 | - DB=pgsql | 38 | - DB=pgsql |
@@ -31,29 +41,9 @@ env: | |||
31 | matrix: | 41 | matrix: |
32 | fast_finish: true | 42 | fast_finish: true |
33 | include: | 43 | include: |
34 | # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency | ||
35 | - php: hhvm-3.12 | ||
36 | sudo: required | ||
37 | dist: trusty | ||
38 | group: edge | ||
39 | env: DB=mysql | ||
40 | addons: | ||
41 | apt: | ||
42 | packages: | ||
43 | - mysql-server-5.6 | ||
44 | - mysql-client-core-5.6 | ||
45 | - mysql-client-5.6 | ||
46 | services: | ||
47 | - mysql | ||
48 | - php: hhvm-3.12 | ||
49 | sudo: required | ||
50 | dist: trusty | ||
51 | group: edge | ||
52 | env: DB=sqlite | ||
53 | - php: 7.0 | 44 | - php: 7.0 |
54 | env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite | 45 | env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite |
55 | allow_failures: | 46 | allow_failures: |
56 | - php: hhvm-3.12 | ||
57 | - php: 7.1 | 47 | - php: 7.1 |
58 | - php: nightly | 48 | - php: nightly |
59 | 49 | ||
@@ -67,15 +57,22 @@ before_script: | |||
67 | - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; | 57 | - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; |
68 | # xdebug isn't enable for PHP 7.1 | 58 | # xdebug isn't enable for PHP 7.1 |
69 | - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi | 59 | - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi |
60 | - if [[ $PHP = 5.5 ]]; then composer require "phpunit/phpunit:4.*" --no-update; fi; | ||
70 | - composer self-update --no-progress | 61 | - composer self-update --no-progress |
71 | - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; | 62 | - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; |
63 | |||
64 | install: | ||
65 | - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.7; fi; | ||
66 | - if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi; | ||
67 | - if [[ $ASSETS = build ]]; then npm install; fi; | ||
72 | 68 | ||
73 | before_install: | 69 | before_install: |
74 | - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; | 70 | - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; |
75 | 71 | ||
76 | script: | 72 | script: |
77 | - travis_wait composer install --no-interaction --no-progress --prefer-dist -o | 73 | - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist |
78 | - ant prepare-$DB | 74 | - ant prepare-$DB |
79 | - phpunit -v | 75 | - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then phpunit -v ; fi; |
80 | - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; | 76 | - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; |
81 | - if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; | 77 | - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; |
78 | - if [[ $ASSETS = build ]]; then ./node_modules/grunt-cli/bin/grunt tests; fi; | ||