-
Notifications
You must be signed in to change notification settings - Fork 93
/
.travis.yml
44 lines (37 loc) · 1.61 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
matrix:
allow_failures:
- php: 5.6
- php: 7.0
branches:
only:
- master
- develop
before_install:
- sudo apt-get update
- sudo apt-get -y --reinstall install imagemagick
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then printf "\n" | pecl install imagick-3.3.0; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then printf "\n" | pecl install imagick-3.4.3; fi
# - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then phpunit --self-upgrade; fi
# - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then echo "extension = imagick.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
- sudo mkdir -p /home/travis/build/kosinix/grafika/tests/tmp
- sudo chmod -R 0777 /home/travis/build/kosinix/grafika/tests/
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then phpenv config-rm xdebug.ini; fi
script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then phpunit; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then phpunit; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then phpunit; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then phpunit; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then phpdbg -qrr phpunit; fi