summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 8 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index 565da4cd1..66f0b0ffd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,5 @@
sudo: false
+dist: precise
language: php
php:
- 5.6
@@ -7,7 +8,7 @@ php:
env:
global:
- - CORE_BRANCH=stable11
+ - CORE_BRANCH=stable12
matrix:
- DB=pgsql
@@ -37,14 +38,15 @@ before_install:
- mv news nextcloud/apps/
before_script:
- - if [[ "$DB" == 'pgsql' ]]; then psql -c 'create database oc_autotest;' -U postgres; fi
+ - if [[ "$DB" == 'pgsql' ]]; then psql -c "CREATE ROLE oc_autotest LOGIN PASSWORD 'oc_autotest'" -U postgres; fi
+ - if [[ "$DB" == 'pgsql' ]]; then psql -c "CREATE DATABASE oc_autotest OWNER oc_autotest;" -U postgres; 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 "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY 'oc_autotest';"; fi
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "GRANT ALL ON oc_autotest.* TO 'oc_autotest'@'localhost';"; fi
# fill nextcloud with default configs and enable news
- cd nextcloud
- mkdir data
- - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
+ - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass="oc_autotest"
- ./occ app:enable news
- ./occ app:check-code news
- ./occ background:cron # enable default cron
@@ -59,8 +61,7 @@ after_failure:
addons:
firefox: "latest"
- postgresql: "9.5"
+ postgresql: "9.4"
services:
- - mysql
- - postgresql
+ - mysql \ No newline at end of file