-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (37 loc) · 945 Bytes
/
.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
language: php
php:
- 5.4
- 5.5
- 5.6
- hhvm
env:
- DB=sqlite BRANCH=stable8
- DB=postgresql BRANCH=stable8
- DB=mysql BRANCH=stable8
matrix:
allow_failures:
- php: hhvm
install:
# install ocdev
- sudo apt-get -y install python3-jinja2 python3-setuptools
- sudo easy_install3 requests
- sudo easy_install3 ocdev
# set up postgresql
- createuser -U travis -s oc_autotest
# set up mysql
- mysql -e 'create database oc_autotest;'
- mysql -u root -e "CREATE USER 'oc_autotest'@'localhost';"
- mysql -u root -e "grant all on oc_autotest.* to 'oc_autotest'@'localhost';"
# install owncloud
- cd ..
- ocdev setup core --dir owncloud --branch $BRANCH --no-history
- cd owncloud
- ocdev ci $DB
# enable bulkupload
- mv ../bulkupload apps/
- php -f console.php app:enable bulkupload
before_script:
- cd apps/bulkupload
script:
- phpunit -c phpunit.xml
- phpunit -c phpunit.integration.xml