-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
40 lines (33 loc) · 891 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
language: php
os: linux
dist: bionic
php:
- 8.1
- 8.2
- 8.3
services:
- postgresql
cache:
directories:
- $HOME/.composer/cache
env:
global:
- APP_NAME=metadata
jobs:
- CLOUD=nextcloud CORE_BRANCH=stable28
- CLOUD=nextcloud CORE_BRANCH=stable29
- CLOUD=nextcloud CORE_BRANCH=stable30
- CLOUD=nextcloud CORE_BRANCH=master
jobs:
allow_failures:
- env: CLOUD=nextcloud CORE_BRANCH=master
before_install:
- if [ $CLOUD = 'nextcloud' ]; then wget -O before_install.sh https://raw.githubusercontent.com/gino0631/nextcloud-metadata/master/tests/travis_nextcloud_install.sh; fi
- . ./before_install.sh $APP_NAME $CORE_BRANCH pgsql
before_script:
- cd apps/$APP_NAME/
- composer install --prefer-dist --no-interaction
script:
# Run phpunit tests
- ./vendor/bin/phpunit --version
- ./vendor/bin/phpunit --configuration tests/phpunit.xml