Skip to content

Commit

Permalink
Fix travis ....
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Jan 12, 2018
1 parent c7fb1b4 commit be7cbfd
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@ php:
- 5.6
- 7.0
- 7.1

- 7.2

addons:
apt:
packages:
- graphviz
- gdb
firefox: latest

env:
global:
- CORE_BRANCH=master
- APP_NAME=gallery
- GH_REF: github.com/owncloud/gallery.git
- secure: "cLmMqrbVZrvn2GAoVs6JWa5h70tzrAISjPZUfENjl0KYT6B84z3B94W/dGU+I2mxwvyBqEP+x83Bih2CxEflqc7tJmdqC+MM/ZZiigPX7RCjq5XHbzUpPpMbC8MFxT2K3jcFXUitfwZvNaZXJIiK3ZQJU4ayKaegLvI91x1SqH0="
matrix:
- DB=sqlite;CLOUD=owncloud
- DB=mysql;CLOUD=owncloud
- DB=sqlite
- DB=mysql

branches:
only:
Expand All @@ -38,14 +40,16 @@ before_cache:
- cp -r ${TRAVIS_BUILD_DIR}/../core/apps/$APP_NAME/vendor ${TRAVIS_BUILD_DIR}/travis/php-cache/`php-config --vernum`

before_install:
# Disable opcache on PHP 7.0 as it crashes too easily
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ]; then sed -i '/opcache.so/d' ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;"
- php --modules

# Setup Selenium
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.19.1-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
- sh -c "if [ ! -e ${TRAVIS_BUILD_DIR}/travis/lib-cache/selenium.jar ]; then wget -O ${TRAVIS_BUILD_DIR}/travis/lib-cache/selenium.jar https://selenium-release.storage.googleapis.com/2.47/selenium-server-standalone-2.47.0.jar; fi;"
- java -jar ${TRAVIS_BUILD_DIR}/travis/lib-cache/selenium.jar -port 4444 >/dev/null 2>&1 & # WARNING - Takes a long time to start up. Keep here

Expand All @@ -68,7 +72,7 @@ before_install:
#- cat /proc/sys/kernel/core_pattern

# Installing the server
- sh -c "if [ '$CLOUD' = 'owncloud' ]; then wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh; fi;"
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
- cd ../core
- php occ app:enable $APP_NAME
Expand Down Expand Up @@ -117,6 +121,8 @@ after_success:
# Send coverage report to Scrutinizer
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml; fi"
# coverage goees to codecov
- bash <(curl -s https://codecov.io/bash) -f tests/_output/coverage.xml

# Generate API documentation
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then php vendor/bin/phpdoc run; fi"
Expand All @@ -132,9 +138,9 @@ after_failure:
matrix:
include:
- php: 5.6
env: DB=pgsql;CLOUD=owncloud
env: DB=pgsql
- php: 7.0
env: DB=sqlite;CLOUD=owncloud
env: DB=sqlite
- php: 7.0
env: DB=mysql;CLOUD=owncloud
env: DB=mysql
fast_finish: true

0 comments on commit be7cbfd

Please sign in to comment.