mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-25 07:53:32 +08:00
Fix travis
This commit is contained in:
parent
c0efc8add0
commit
45197169ad
1 changed files with 4 additions and 3 deletions
|
@ -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"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue