@@ -97,14 +97,8 @@ pipeline:
|
|||||||
- cd ../server/
|
- cd ../server/
|
||||||
- ./occ app:enable $APP_NAME
|
- ./occ app:enable $APP_NAME
|
||||||
- cd apps/$APP_NAME
|
- cd apps/$APP_NAME
|
||||||
|
|
||||||
- phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
|
- phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
|
||||||
- phpunit -c tests/phpunit.integration.xml --coverage-clover build/php-integration.coverage.xml
|
- phpunit -c tests/phpunit.integration.xml --coverage-clover build/php-integration.coverage.xml
|
||||||
|
|
||||||
# Create coverage report
|
|
||||||
- wget https://codecov.io/bash -O codecov.sh
|
|
||||||
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t f6375299-4832-487e-b831-091772ab0384; fi"
|
|
||||||
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t f6375299-4832-487e-b831-091772ab0384; fi"
|
|
||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
TESTS: php5.6
|
TESTS: php5.6
|
||||||
|
|||||||
10
.travis.yml
10
.travis.yml
@@ -1,6 +1,4 @@
|
|||||||
language: php
|
language: php
|
||||||
dist: trusty
|
|
||||||
sudo: required
|
|
||||||
services:
|
services:
|
||||||
- mysql
|
- mysql
|
||||||
php:
|
php:
|
||||||
@@ -17,19 +15,20 @@ matrix:
|
|||||||
exclude:
|
exclude:
|
||||||
- php: 7.2
|
- php: 7.2
|
||||||
env: CORE_BRANCH=stable12 DB=mysql
|
env: CORE_BRANCH=stable12 DB=mysql
|
||||||
|
- php: 5.6
|
||||||
|
env: CORE_BRANCH=master DB=mysql
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget https://phar.phpunit.de/phpunit-5.7.phar
|
- wget https://phar.phpunit.de/phpunit-5.7.phar
|
||||||
- chmod +x phpunit-5.7.phar
|
- chmod +x phpunit-5.7.phar
|
||||||
- mkdir bin
|
- mkdir bin
|
||||||
- sudo mv phpunit-5.7.phar bin/phpunit
|
- mv phpunit-5.7.phar bin/phpunit
|
||||||
- export PATH="$PWD/bin:$PATH"
|
- export PATH="$PWD/bin:$PATH"
|
||||||
- phpunit --version
|
- phpunit --version
|
||||||
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
||||||
- bash ./before_install.sh deck $CORE_BRANCH $DB
|
- bash ./before_install.sh deck $CORE_BRANCH $DB
|
||||||
- cd ../server
|
- cd ../server
|
||||||
- ./occ app:enable deck
|
- ./occ app:enable deck
|
||||||
- php -S localhost:8080 &
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd apps/deck
|
- cd apps/deck
|
||||||
@@ -37,6 +36,9 @@ before_script:
|
|||||||
script:
|
script:
|
||||||
- make test-unit
|
- make test-unit
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
- cat ../../data/nextcloud.log
|
- cat ../../data/nextcloud.log
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user