Add integration tests

This commit is contained in:
Morris Jobke 2016-06-14 16:03:59 +02:00
parent 7a5093c43e
commit 97ae4d8b00
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
2 changed files with 16 additions and 0 deletions

View File

@ -1,4 +1,11 @@
build: build:
integration:
image: morrisjobke/nextcloud-ci-php7:1.0.3
commands:
- git submodule update --init
- ./occ maintenance:install --admin-pass=admin
- cd build/integration
- ./run.sh
jsunit: jsunit:
image: morrisjobke/nextcloud-ci-jsunit:1.0.2 image: morrisjobke/nextcloud-ci-jsunit:1.0.2
commands: commands:

View File

@ -1,5 +1,14 @@
#!/usr/bin/env bash #!/usr/bin/env bash
COMPOSER=$(which composer)
if [ -x "$COMPOSER" ]; then
echo "Using composer executable $COMPOSER"
else
echo "Could not find composer executable" >&2
exit 1
fi
composer install composer install
SCENARIO_TO_RUN=$1 SCENARIO_TO_RUN=$1