-
Notifications
You must be signed in to change notification settings - Fork 35
/
.travis.yml
executable file
·48 lines (41 loc) · 1.46 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
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
env:
- DEPENDENCIES=no
- DEPENDENCIES=beta
- DEPENDENCIES=low
matrix:
allow_failures:
- php: nightly
- env: DEPENDENCIES=beta
- env: DEPENDENCIES=low
script:
- mkdir -p build/logs
- composer validate-files
- composer check-code-style
- composer run-tests
before_script:
- if [ "$DEPENDENCIES" = "low" ]; then composer --prefer-lowest --prefer-stable update; else composer update; fi;
after_script:
- php vendor/bin/coveralls -v
before_install:
- composer self-update
- wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-9.90.tar.gz
- tar -zxvf Image-ExifTool-9.90.tar.gz
- cd Image-ExifTool-9.90 && perl Makefile.PL && make test && sudo make install
- cd .. && rm -rf Image-ExifTool-9.90
# Set composer minimum-stability configuration filter to beta versions
- if [ "$DEPENDENCIES" = "beta" ]; then perl -pi -e 's/^}$/,"minimum-stability":"beta"}/' composer.json; fi;
# Disable xdebug, there is no use of it being enabled
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
# Prevent Travis throwing an out of memory error
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Test if we have a token for github in case the project hits the 60 rph limit
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;