forked from pimcore/pimcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 1.29 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
language: php
notifications:
email:
php:
- 5.4
- 5.5
- 5.6
- hhvm
- 7
- hhvm-nightly
matrix:
allow_failures:
- php: 7
- php: hhvm-nightly
before_script:
# install apache
- sudo apt-get update
- sudo apt-get install apache2 libapache2-mod-fastcgi
- sudo a2enmod rewrite actions fastcgi alias
# customize php settings
- sudo chmod 0755 build/travis/setup-fpm.sh build/travis/setup-hhvm.sh
- if [[ "$TRAVIS_PHP_VERSION" != *"hhvm"* ]]; then build/travis/setup-fpm.sh; fi
- if [[ "$TRAVIS_PHP_VERSION" == *"hhvm"* ]]; then build/travis/setup-hhvm.sh; fi
# configure apache virtual hosts - config was copied in the individual setup scripts above (FPM/HHVM)
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
- sudo service apache2 restart
# make tests executable
- cd tests
- sudo chmod 0755 alltests.sh hhvm-all.sh
script:
- if [[ "$TRAVIS_PHP_VERSION" != *"hhvm"* ]]; then ./alltests.sh; fi
- if [[ "$TRAVIS_PHP_VERSION" == *"hhvm"* ]]; then ./hhvm-all.sh; fi
after_script:
- cat $TRAVIS_BUILD_DIR/tests/tmp/var/log/debug.log
- cat $TRAVIS_BUILD_DIR/tests/tmp/var/log/php.log
- cat $TRAVIS_BUILD_DIR/apache-error.log
- cat $TRAVIS_BUILD_DIR/apache-access.log
- cat /tmp/hhvm.log