news/.travis.yml

71 строка
2.0 KiB
YAML
Исходник Обычный вид История

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
2016-12-08 17:38:58 +03:00
- 7.1
2015-08-07 16:34:46 +03:00
env:
global:
2016-12-08 17:13:24 +03:00
- CORE_BRANCH=master
2015-08-07 16:34:46 +03:00
matrix:
- DB=pgsql
2015-01-23 17:51:27 +03:00
matrix:
allow_failures:
2016-01-06 23:42:30 +03:00
- env: DB=pgsql CORE_BRANCH=master
include:
2016-02-21 16:55:02 +03:00
- php: 5.6
env: DB=sqlite
2016-02-21 16:55:02 +03:00
- php: 5.6
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
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-12-08 17:38:58 +03:00
- if [[ "$DB" == 'pgsql' ]]; then createuser -U postgres -s "oc_autotest"; fi
- if [[ "$DB" == 'pgsql' ]]; then createdb -U postgres "oc_autotest"; fi
2016-12-08 17:44:49 +03:00
- if [[ "$DB" == 'pgsql' ]]; then psql -U postgres -c "GRANT ALL ON DATABASE oc_autotest TO oc_autotest;"; fi
2016-12-08 17:34:33 +03:00
- 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
2016-12-08 17:48:22 +03:00
- 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
2016-12-08 17:48:22 +03:00
- ./occ maintenance:install --database-name oc_autotest --database-user postgres --admin-user admin --admin-pass admin --database $DB --database-pass=''
- ./occ app:enable news
- ./occ app:check-code news
- ./occ background:cron # enable default cron
2016-03-27 15:28:05 +03:00
- php -S localhost:8080 &
2016-12-08 17:22:16 +03:00
- ls
- ls data
2016-02-14 15:06:57 +03:00
- cd apps/news
2013-07-06 12:28:24 +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
addons:
firefox: "latest"
2016-12-08 17:01:45 +03:00
services:
2016-12-08 17:48:22 +03:00
- mysql
- postgresql