forked from nextcloud/notes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (43 loc) · 957 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
43
44
45
46
47
48
49
50
51
52
language: php
php:
- 7.2
services:
- mysql
addons:
apt:
packages:
- libxml2-utils
cache:
directories:
- node_modules
env:
global:
- CORE_BRANCH=master
- APP_NAME=notes
matrix:
- DB=mysql
branches:
only:
- master
- /^stable\d*$/
before_install:
#- export DISPLAY=:99.0
#- export CHROME_BIN=chromium-browser
#- sh -e /etc/init.d/xvfb start
#- sudo apt-get update
#- sudo apt-get install firefox
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
- . ./before_install.sh $APP_NAME $CORE_BRANCH $DB
- cd ../server/
- php occ app:enable notes
- cd apps/$APP_NAME
script:
# Run PHP unit tests (skipped due to errors)
# - phpunit --coverage-clover clover.xml -c phpunit.xml
# - phpunit -c phpunit.integration.xml
# build js
- make init
- make lint
- make build-js-production
# Check app validity
- php ../../occ app:check-code notes