forked from virtUOS/studip-unterrichtsplanung
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (56 loc) · 2.02 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
dist: bionic
os: linux
addons:
apt:
packages:
- apache2
- libapache2-mod-php7.2
- php-gettext
- php7.2-memcached
- php7.2-mysql
- php7.2-curl
- php7.2-imagick
- php7.2-gd
- php7.2-zip
- php7.2-mbstring
- php7.2-xml
- php7.2-xmlrpc
- php7.2-intl
- php7.2-cli
language: php
cache:
directories:
- $HOME/build/4.4
- $HOME/.composer/cache/files
apt: true
services:
- mysql
jobs:
include:
- php: 7.2
before_install:
- composer self-update
install:
- composer install --prefer-dist
- svn co svn://develop.studip.de/studip/branches/4.4 $HOME/build/4.4 --username studip --password studip --non-interactive
- cp tests/build/config_local.inc.php $HOME/build/4.4/config
- cp $HOME/build/4.4/config/config.inc.php.dist $HOME/build/4.4/config/config.inc.php
- cp $HOME/build/4.4/config/.htaccess.dist $HOME/build/4.4/public/.htaccess
- mysql -u root < tests/build/studip.sql
- mkdir -p $HOME/build/4.4/public/plugins_packages/elan-ev
- ln -sfn ../../../../virtUOS/studip-unterrichtsplanung $HOME/build/4.4/public/plugins_packages/elan-ev/Unterrichtsplanung
before_script:
# enable short_opent_tags for PHP cli
- sudo cp -f tests/build/30-sot.ini /etc/php/7.2/mods-available/sot.ini
- sudo phpenmod sot
# configure apache virtual hosts
- sudo cp -f tests/build/travis-ci-apache /etc/apache2/sites-available/000-default.conf
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$HOME/build/4.4?g" --in-place /etc/apache2/sites-available/000-default.conf
- cat /etc/apache2/sites-available/000-default.conf
- sudo chmod +x $HOME
- sudo service apache2 restart
- cd $HOME/build/4.4 && php7.2 ./cli/plugin_manager register public/plugins_packages/elan-ev/Unterrichtsplanung
- cd $HOME/build/4.4 && php7.2 ./cli/plugin_manager activate Unterrichtsplanung
- cd $HOME/build/4.4 && php7.2 ./cli/plugin_manager migrate Unterrichtsplanung -v
script:
- cd $HOME/build/virtUOS/studip-unterrichtsplanung && composer_modules/bin/codecept run api