-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
71 lines (64 loc) · 2.2 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
language: php
php:
- 7.2
- 7.3
- 7.4
- master
matrix:
fast_finish: true
allow_failures:
- php: master
services:
- mysql
sudo: required
install:
# cloning egroupware into egroupware directory
- git clone --depth=50 --branch=17.1 https://github.com/EGroupware/egroupware.git
- git clone --depth=50 --branch=17.1 https://github.com/EGroupware/ADOdb.git egroupware/api/src/Db/ADOdb
# ranking app still needs old compatibility api (phpgwapi+etemplate)
- git clone --depth=50 --branch=17.1 https://github.com/EGroupware/phpgwapi.git egroupware/phpgwapi
- git clone --depth=50 --branch=17.1 https://github.com/EGroupware/etemplate.git egroupware/etemplate
# finally copy tested app into it's subdirectory ranking/
- mkdir egroupware/ranking/
- cp -r *.php inc lang setup templates tests egroupware/ranking/
before_script:
- sudo apt-get update -qq
- sudo apt-get install -y libpcre3-dev
- case $(phpenv version-name) in
"5.6")
yes "" | pecl install apcu-4.0.11;
phpenv config-rm xdebug.ini;
composer require 'phpunit/phpunit:~5.7';
;;
"7"|"7.0")
yes "" | pecl install apcu;
phpenv config-rm xdebug.ini;
composer require 'phpunit/phpunit:~6';
;;
*)
yes "" | pecl install apcu;
phpenv config-rm xdebug.ini;
composer require --ignore-platform-reqs 'phpunit/phpunit:~7';
;;
esac
- php -m
- php -i
- cd egroupware/
- composer install
# create data directory
- sudo mkdir -p /var/lib/egroupware/default/files/sqlfs
- sudo mkdir -p /var/lib/egroupware/default/backup
- sudo chown -R travis /var/lib/egroupware
- ln -s /var/lib/egroupware/header.inc.php
# install egroupware using MariaDB as domain "default"
# and add an admin user "demo" with password "guest"
- php doc/rpm-build/post_install.php --domain default
--source_dir `pwd` --start_db '' --autostart_db '' --start_webserver '' --webserver_user ''
--admin_user demo --admin_passwd guest --admin_email [email protected]
script:
- doc/php_syntax_check.sh ranking
- php doc/rpm-build/post_install.php --install-update-app ranking
- for test in ranking/tests/*.php; do ./$test; done
cache:
directories:
- $HOME/.composer/cache