2016-04-18 19:34:04 +03:00
|
|
|
sudo: false
|
2016-02-21 16:55:02 +03:00
|
|
|
dist: trusty
|
2013-07-20 02:06:15 +04:00
|
|
|
language: php
|
|
|
|
php:
|
2015-01-23 18:41:50 +03:00
|
|
|
- 5.6
|
2016-01-06 23:42:30 +03:00
|
|
|
- 7
|
2015-08-07 16:34:46 +03:00
|
|
|
env:
|
|
|
|
global:
|
2016-07-23 22:24:54 +03:00
|
|
|
- CORE_BRANCH=stable10
|
2015-08-07 16:34:46 +03:00
|
|
|
matrix:
|
|
|
|
- DB=pgsql
|
2015-01-23 17:51:27 +03:00
|
|
|
|
|
|
|
matrix:
|
2015-04-30 15:38:03 +03:00
|
|
|
allow_failures:
|
2016-01-06 23:42:30 +03:00
|
|
|
- env: DB=pgsql CORE_BRANCH=master
|
2015-04-30 15:38:03 +03:00
|
|
|
include:
|
2016-02-21 16:55:02 +03:00
|
|
|
- php: 5.6
|
2015-04-30 15:38:03 +03:00
|
|
|
env: DB=sqlite
|
2016-02-21 16:55:02 +03:00
|
|
|
- php: 5.6
|
2015-08-07 16:24:16 +03:00
|
|
|
env: DB=mysql
|
2016-02-21 16:55:02 +03:00
|
|
|
- php: 5.6
|
2016-03-26 18:58:52 +03:00
|
|
|
env: DB=pgsql CORE_BRANCH=master
|
2015-04-30 15:40:23 +03:00
|
|
|
fast_finish: true
|
2013-07-06 03:05:14 +04:00
|
|
|
|
2013-07-19 21:34:51 +04:00
|
|
|
before_install:
|
2016-02-21 16:55:02 +03:00
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
2016-04-18 19:34:04 +03:00
|
|
|
# re-enable once mariadb is added as an option
|
|
|
|
# - if [[ "$DB" == 'mysql' ]]; then sudo apt-get -y install mariadb-server; fi
|
2016-04-28 18:10:05 +03:00
|
|
|
- nvm install 6
|
2016-02-13 15:11:20 +03:00
|
|
|
- npm install -g npm@latest
|
2016-03-27 21:46:00 +03:00
|
|
|
- make
|
2016-02-14 15:06:57 +03:00
|
|
|
# install core
|
2016-03-26 18:35:43 +03:00
|
|
|
- cd ../
|
2016-07-23 22:34:23 +03:00
|
|
|
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
|
|
|
|
- mv news nextcloud/apps/
|
2014-05-16 00:55:10 +04:00
|
|
|
|
2015-03-21 14:49:11 +03:00
|
|
|
before_script:
|
2016-03-26 22:59:58 +03:00
|
|
|
- if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
|
|
|
|
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e 'create database oc_autotest;'; fi
|
|
|
|
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"; fi
|
|
|
|
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "grant all on oc_autotest.* to 'oc_autotest'@'localhost';"; fi
|
2016-07-23 22:34:23 +03:00
|
|
|
# fill nextcloud with default configs and enable news
|
|
|
|
- cd nextcloud
|
2015-01-15 18:14:36 +03:00
|
|
|
- mkdir data
|
2015-04-30 13:59:08 +03:00
|
|
|
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
|
2015-04-29 12:08:30 +03:00
|
|
|
- ./occ app:enable news
|
2016-05-12 20:19:22 +03:00
|
|
|
- ./occ app:check-code news
|
2015-08-07 15:41:51 +03:00
|
|
|
- ./occ background:cron # enable default cron
|
2016-03-27 15:28:05 +03:00
|
|
|
- php -S localhost:8080 &
|
2016-02-14 15:06:57 +03:00
|
|
|
- cd apps/news
|
2013-07-06 12:28:24 +04:00
|
|
|
|
2013-07-06 12:40:25 +04:00
|
|
|
script:
|
2016-03-26 22:55:16 +03:00
|
|
|
- make test
|
|
|
|
|
|
|
|
after_failure:
|
2016-08-10 20:48:04 +03:00
|
|
|
- cat ../../data/nextcloud.log
|
2016-03-26 21:00:28 +03:00
|
|
|
|
2016-03-26 22:59:58 +03:00
|
|
|
addons:
|
|
|
|
firefox: "latest"
|