xref: /imagick/.travis.yml (revision 961bad80)
1language: php
2
3sudo: false
4
5cache:
6    directories:
7        - $HOME/im
8
9# dist: bionic
10# dist: trusty
11
12php:
13    - nightly
14    - 7.4
15    - 7.3
16    - 7.2
17    - 7.1
18    - 7.0
19    - 5.6
20# These don't work on travis currently, and although I don't particularly
21# want to drop support for them, I can't justify spending any more time on
22# getting the travis build to work for them.
23#    - 5.5
24#    - 5.4
25
26env:
27  - IMAGEMAGICK_VERSION=git7
28  - IMAGEMAGICK_VERSION=git6
29  - IMAGEMAGICK_VERSION=7.0.10-27
30  - IMAGEMAGICK_VERSION=7.0.8-4
31  - IMAGEMAGICK_VERSION=7.0.1-0
32  - IMAGEMAGICK_VERSION=6.9.2-0
33  - IMAGEMAGICK_VERSION=6.8.7-0
34  - IMAGEMAGICK_VERSION=6.7.8-0
35
36# Include individual commits like this:
37  # - IMAGEMAGICK_VERSION=commit_25553302a6d5f736b55e60109600dfbce5fbea48
38
39
40matrix:
41  allow_failures:
42    - env: IMAGEMAGICK_VERSION=git6
43    - env: IMAGEMAGICK_VERSION=git7
44  exclude:
45    - php: 5.4
46      env: IMAGEMAGICK_VERSION=6.8.7-0
47
48
49
50before_install:
51    - sudo apt-get update
52    - sudo apt-get install -y fonts-urw-base35 || true
53    # - sudo apt-get install -y fonts-freefont-ttf || true
54    - sudo apt-get install -y libfreetype6-dev || true
55    - sudo apt-get install -y texlive-fonts-recommended || true
56
57before_script:
58    - for file in tests/*.phpt; do grep $(basename $file) package.xml >/dev/null || (echo "Missing $file from package.xml" ; exit 1); done
59    - bash ./imagemagick_dependency.sh "${IMAGEMAGICK_VERSION}"
60
61script:
62    - export NO_INTERACTION=1
63    - export REPORT_EXIT_STATUS=1
64    - export SKIP_SLOW_TESTS=1
65    - export TEST_PHP_EXECUTABLE=`which php`
66    - export PHP_IMAGICK_VERSION=$(php -r '$sxe = simplexml_load_file ("package.xml"); echo (string) $sxe->version->release;')
67    - export CFLAGS=$(php util/calculate_cflags.php $TRAVIS_PHP_VERSION $IMAGEMAGICK_VERSION)
68    - echo "CFLAGS are ${CFLAGS}"
69    # - . ./configure-cflags.sh
70    - phpize
71    - ./configure --with-imagick="${HOME}/im/imagemagick-${IMAGEMAGICK_VERSION}"
72    - make install
73    - php -d extension=imagick.so util/check_fonts.php
74    - php run-tests.php -d extension=imagick.so -d extension_dir=modules -n ./*.phpt
75    - php run-tests.php -d extension=imagick.so -d extension_dir=modules -n ./tests/*.phpt
76    - for i in `ls tests/*.diff 2>/dev/null`; do echo "-- START ${i}"; cat $i; echo "-- END"; done
77    - php ./util/check_version.php
78
79
80