forked from pyrocms/pyrocms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 1.38 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
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
matrix:
allow_failures:
- php: hhvm
before_script:
- composer self-update
- composer install
- phpenv rehash
- sudo apt-get install apache2 libapache2-mod-fastcgi
# enable php-fpm
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
- sudo a2enmod rewrite actions fastcgi alias
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
# configure apache virtual hosts
- sudo cp -f build/travis-ci-apache /etc/apache2/sites-available/default
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
- sudo service apache2 restart
- mysql -u root -e "CREATE USER 'pyrocms'@'127.0.0.1' IDENTIFIED BY 'password'"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* to 'pyrocms'@'127.0.0.1' IDENTIFIED BY 'password'"
- export PYRO_DB_HOST=127.0.0.1
- export PYRO_WEB_HOST=127.0.0.1
- chmod -R 777 system/cms/cache
- chmod -R 777 system/cms/config
- chmod -R 777 addons
- chmod -R 777 assets/cache
- chmod -R 777 uploads
- chmod -R 777 system/cms/modules/streams_core/models
script: phpunit -c tests/integration
branches:
exclude:
- 2.1/develop
- 2.1/master
- 2.0/develop
- 2.0/master