Bump drone images (#391)
* Bump drone images Signed-off-by: Julius Härtl <jus@bitgrid.net> * Use travis for codecov Signed-off-by: Julius Härtl <jus@bitgrid.net> * Just test against master in travis Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
169175ab55
commit
58df42ea9c
22
.drone.yml
22
.drone.yml
@@ -5,7 +5,7 @@ clone:
|
|||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
check-app-compatbility:
|
check-app-compatbility:
|
||||||
image: nextcloudci/php5.6:php5.6-3
|
image: nextcloudci/php7.0:php7.0-17
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=deck
|
- APP_NAME=deck
|
||||||
- CORE_BRANCH=master
|
- CORE_BRANCH=master
|
||||||
@@ -23,16 +23,14 @@ pipeline:
|
|||||||
matrix:
|
matrix:
|
||||||
TESTS: check-app-compatbility
|
TESTS: check-app-compatbility
|
||||||
signed-off-check:
|
signed-off-check:
|
||||||
image: nextcloudci/php7.0:php7.0-2
|
image: nextcloudci/php7.0:php7.0-17
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=deck
|
- APP_NAME=deck
|
||||||
- CORE_BRANCH=master
|
- CORE_BRANCH=master
|
||||||
- DB=sqlite
|
- DB=sqlite
|
||||||
commands:
|
commands:
|
||||||
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
- wget https://raw.githubusercontent.com/nextcloud/server/master/build/signed-off-checker.php
|
||||||
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
- php ./signed-off-checker.php
|
||||||
- cd ../server
|
|
||||||
- php ./build/signed-off-checker.php
|
|
||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
TESTS: signed-off-check
|
TESTS: signed-off-check
|
||||||
@@ -40,7 +38,7 @@ pipeline:
|
|||||||
image: nextcloudci/php5.6:php5.6-8
|
image: nextcloudci/php5.6:php5.6-8
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=deck
|
- APP_NAME=deck
|
||||||
- CORE_BRANCH=master
|
- CORE_BRANCH=stable13
|
||||||
- DB=sqlite
|
- DB=sqlite
|
||||||
commands:
|
commands:
|
||||||
- composer install
|
- composer install
|
||||||
@@ -88,7 +86,7 @@ pipeline:
|
|||||||
image: nextcloudci/php5.6:php5.6-8
|
image: nextcloudci/php5.6:php5.6-8
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=deck
|
- APP_NAME=deck
|
||||||
- CORE_BRANCH=master
|
- CORE_BRANCH=stable13
|
||||||
- DB=sqlite
|
- DB=sqlite
|
||||||
commands:
|
commands:
|
||||||
- apt update && apt-get -y install php5-xdebug
|
- apt update && apt-get -y install php5-xdebug
|
||||||
@@ -99,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
|
||||||
@@ -166,7 +158,7 @@ pipeline:
|
|||||||
matrix:
|
matrix:
|
||||||
TESTS: php7.2
|
TESTS: php7.2
|
||||||
integration:
|
integration:
|
||||||
image: nextcloudci/integration-php7.0:integration-php7.0-3
|
image: nextcloudci/integration-php7.0:integration-php7.0-6
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=deck
|
- APP_NAME=deck
|
||||||
- CORE_BRANCH=master
|
- CORE_BRANCH=master
|
||||||
|
|||||||
17
.travis.yml
17
.travis.yml
@@ -1,34 +1,24 @@
|
|||||||
language: php
|
language: php
|
||||||
dist: trusty
|
|
||||||
sudo: required
|
|
||||||
services:
|
services:
|
||||||
- mysql
|
- mysql
|
||||||
php:
|
php:
|
||||||
- 5.6
|
|
||||||
- 7.0
|
- 7.0
|
||||||
- 7.1
|
- 7.1
|
||||||
- 7.2
|
- 7.2
|
||||||
env:
|
env:
|
||||||
- CORE_BRANCH=master DB=mysql
|
- CORE_BRANCH=stable13 DB=mysql
|
||||||
- CORE_BRANCH=stable12 DB=mysql
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
exclude:
|
|
||||||
- php: 7.2
|
|
||||||
env: CORE_BRANCH=stable12 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
|
||||||
@@ -36,6 +26,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