forked from gino0631/nextcloud-metadata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (26 loc) · 871 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
language: php
php:
- 7.0
- 7.1
env:
global:
- APP_NAME=metadata
matrix:
- CLOUD=nextcloud;CORE_BRANCH=master
- CLOUD=owncloud;CORE_BRANCH=stable10
before_install:
- if [ $CLOUD = 'nextcloud' ]; then wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh; fi
- if [ $CLOUD = 'owncloud' ]; then wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh; fi
- if [ $CLOUD = 'owncloud' ]; then ln -s $PWD ../$APP_NAME; fi
- . ./before_install.sh $APP_NAME $CORE_BRANCH pgsql
- if [ $CLOUD = 'nextcloud' ]; then cd ../server; fi
- if [ $CLOUD = 'owncloud' ]; then cd ../core; fi
- ./occ check
- ./occ status
- ./occ app:enable $APP_NAME
- ./occ app:list
script:
- cd apps/$APP_NAME/
# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml