Add behat tests to drone
Signed-off-by: Julius Haertl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
084d892ce6
commit
2b9b22f2f2
19
.drone.yml
19
.drone.yml
@@ -129,6 +129,24 @@ pipeline:
|
|||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
TESTS: php7.1
|
TESTS: php7.1
|
||||||
|
integration:
|
||||||
|
image: nextcloudci/integration-php7.0:integration-php7.0-3
|
||||||
|
environment:
|
||||||
|
- APP_NAME=deck
|
||||||
|
- CORE_BRANCH=master
|
||||||
|
- DB=sqlite
|
||||||
|
commands:
|
||||||
|
# Pre-setup steps
|
||||||
|
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
||||||
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
||||||
|
- cd ../server/
|
||||||
|
- php occ app:enable deck
|
||||||
|
- cd apps/$APP_NAME
|
||||||
|
- cd tests/integration
|
||||||
|
- ./run.sh
|
||||||
|
when:
|
||||||
|
matrix:
|
||||||
|
TESTS: integration
|
||||||
jsbuild:
|
jsbuild:
|
||||||
image: mhart/alpine-node:6.8.0
|
image: mhart/alpine-node:6.8.0
|
||||||
commands:
|
commands:
|
||||||
@@ -149,5 +167,6 @@ matrix:
|
|||||||
- TESTS: php7.0
|
- TESTS: php7.0
|
||||||
- TESTS: php7.1
|
- TESTS: php7.1
|
||||||
- TESTS: jsbuild
|
- TESTS: jsbuild
|
||||||
|
- TESTS: integration
|
||||||
|
|
||||||
branches: [ master, stable* ]
|
branches: [ master, stable* ]
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@ js/node_modules/*
|
|||||||
js/vendor/
|
js/vendor/
|
||||||
build/
|
build/
|
||||||
js/public/
|
js/public/
|
||||||
|
tests/integration/vendor/
|
||||||
|
tests/integration/composer.lock
|
||||||
|
|||||||
10
Makefile
10
Makefile
@@ -69,8 +69,9 @@ appstore: clean-build build
|
|||||||
|
|
||||||
echo $(appstore_package_name).tar.gz
|
echo $(appstore_package_name).tar.gz
|
||||||
|
|
||||||
|
test: test-unit test-integration
|
||||||
|
|
||||||
test:
|
test-unit:
|
||||||
mkdir -p build/
|
mkdir -p build/
|
||||||
ifeq (, $(shell which phpunit 2> /dev/null))
|
ifeq (, $(shell which phpunit 2> /dev/null))
|
||||||
@echo "No phpunit command available, downloading a copy from the web"
|
@echo "No phpunit command available, downloading a copy from the web"
|
||||||
@@ -83,6 +84,9 @@ else
|
|||||||
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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
test-js:
|
test-integration:
|
||||||
cd js && run test
|
cd tests/integration && ./run.sh
|
||||||
|
|
||||||
|
test-js: install-deps
|
||||||
|
cd js && run test
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user