Skip to content

Commit

Permalink
attempt to fix tests with another server branch
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed May 6, 2019
1 parent 73dd6fd commit 22a5407
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ php:
- 7.2
env:
global:
- CORE_BRANCH=stable15
- CORE_BRANCH=stable16
matrix:
- DB=pgsql

Expand All @@ -20,9 +20,9 @@ matrix:
- php: 7.2
env: DB=pgsql
services: postgresql
- php: 7.2
env: DB=pgsql CORE_BRANCH=master
services: postgresql
#- php: 7.2
# env: DB=pgsql CORE_BRANCH=master
# services: postgresql
fast_finish: true

before_install:
Expand All @@ -38,8 +38,8 @@ before_install:
#- make appstore
# install core
- cd ../
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
#- wget -q https://download.nextcloud.com/server/releases/nextcloud-15.0.2.zip ; unzip -q nextcloud-15.0.2.zip ; rm nextcloud-15.0.2.zip
#- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
- wget -q https://download.nextcloud.com/server/releases/nextcloud-16.0.0.zip ; unzip -q nextcloud-16.0.0.zip ; rm nextcloud-16.0.0.zip
- mv maps nextcloud/apps/

before_script:
Expand All @@ -48,9 +48,11 @@ before_script:
- if [[ "$DB" == 'mysql' ]]; then sudo mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"; fi
- if [[ "$DB" == 'mysql' ]]; then sudo mysql -u root -e "grant all on oc_autotest.* to 'oc_autotest'@'localhost';"; fi
- cd nextcloud
# temporary fix, feel free to fix that
- sed -i $'s|if (substr($fullPath, 0, strlen($root) + 1) === $root . \'/\')|if (is_string($root) and substr($fullPath, 0, strlen($root) + 1) === $root . \'/\')|g' lib/autoloader.php
- mkdir data
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
- ./occ app:enable maps
- php ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
- php ./occ app:enable maps
#- php -S localhost:8080 &
- cd apps/maps

Expand Down

0 comments on commit 22a5407

Please sign in to comment.