Fix travis

This commit is contained in:
brantje 2017-10-28 19:12:59 +02:00
parent c0efc8add0
commit 45197169ad
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -36,7 +36,6 @@ before_install:
- npm install -g npm@latest
- sh -c "if [ '$JSTESTS' = '1' ]; then npm install grunt-cli -g; fi"
#
before_script:
# - if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
@ -46,9 +45,11 @@ before_script:
- php -S localhost:8080 &
- cd apps/$APP_NAME/
- cp /home/travis/build/nextcloud/server/composer.json .
- mkdir -p build
- curl -sSL https://phar.phpunit.de/phpunit-5.7.phar -o build/phpunit.phar
- sh -c "if [ '$JSTESTS' != '1' ]; then composer require codacy/coverage; fi"
#- sh -c "if [ '$JSTESTS' != '1' ]; then composer require codacy/coverage -vvv; fi"
- sh -c "if [ '$JSTESTS' != '1' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$JSTESTS' = '1' ]; then npm install; fi"
# - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
@ -66,7 +67,7 @@ script:
# Create coverage report
- sh -c "if [ '$JSTESTS' != '1' ]; then php vendor/bin/codacycoverage -v clover coverage.clover; fi"
#- sh -c "if [ '$JSTESTS' != '1' ]; then php vendor/bin/codacycoverage -v clover coverage.clover; fi"
- sh -c "if [ '$JSTESTS' != '1' ]; then php ocular.phar code-coverage:upload --access-token="$SCRUTINIZER_TOKEN" --format=php-clover coverage.clover; fi"