forked from Imagick/imagick
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
78 lines (63 loc) · 2.26 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: php
sudo: false
cache:
directories:
- $HOME/im
# dist: bionic
# dist: trusty
php:
- nightly
- 7.4
- 7.3
- 7.2
- 7.1
- 7.0
- 5.6
# These don't work on travis currently, and although I don't particularly
# want to drop support for them, I can't justify spending any more time on
# getting the travis build to work for them.
# - 5.5
# - 5.4
env:
- IMAGEMAGICK_VERSION=git7
- IMAGEMAGICK_VERSION=git6
- IMAGEMAGICK_VERSION=7.0.10-27
- IMAGEMAGICK_VERSION=7.0.8-4
- IMAGEMAGICK_VERSION=7.0.1-0
- IMAGEMAGICK_VERSION=6.9.2-0
- IMAGEMAGICK_VERSION=6.8.7-0
- IMAGEMAGICK_VERSION=6.7.8-0
# Include individual commits like this:
# - IMAGEMAGICK_VERSION=commit_25553302a6d5f736b55e60109600dfbce5fbea48
matrix:
allow_failures:
- env: IMAGEMAGICK_VERSION=git6
- env: IMAGEMAGICK_VERSION=git7
exclude:
- php: 5.4
env: IMAGEMAGICK_VERSION=6.8.7-0
before_install:
- sudo apt-get update
- sudo apt-get install -y fonts-urw-base35 || true
# - sudo apt-get install -y fonts-freefont-ttf || true
- sudo apt-get install -y libfreetype6-dev || true
- sudo apt-get install -y texlive-fonts-recommended || true
before_script:
- for file in tests/*.phpt; do grep $(basename $file) package.xml >/dev/null || (echo "Missing $file from package.xml" ; exit 1); done
- bash ./imagemagick_dependency.sh "${IMAGEMAGICK_VERSION}"
script:
- export NO_INTERACTION=1
- export REPORT_EXIT_STATUS=1
- export SKIP_SLOW_TESTS=1
- export TEST_PHP_EXECUTABLE=`which php`
- export PHP_IMAGICK_VERSION=$(php -r '$sxe = simplexml_load_file ("package.xml"); echo (string) $sxe->version->release;')
- export CFLAGS=$(php util/calculate_cflags.php $TRAVIS_PHP_VERSION $IMAGEMAGICK_VERSION)
- echo "CFLAGS are ${CFLAGS}"
- phpize
- ./configure --with-imagick="${HOME}/im/imagemagick-${IMAGEMAGICK_VERSION}"
- make install
- php -d extension=imagick.so util/check_fonts.php
- php run-tests.php -d extension=imagick.so -d extension_dir=modules -n ./*.phpt
- php run-tests.php -d extension=imagick.so -d extension_dir=modules -n ./tests/*.phpt
- for i in `ls tests/*.diff 2>/dev/null`; do echo "-- START ${i}"; cat $i; echo "-- END"; done
- php ./util/check_version.php