diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-30 11:46:53 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-10-30 15:12:35 +0300 |
commit | fe285d4d96a130c6e8ca8e72ee2da234e7d31c69 (patch) | |
tree | 1e4b259111b3925a021ae274176b7d421cd4b497 /.drone.yml | |
parent | 48fbddc9f310d4282647e331a05ebf007e190eea (diff) |
Only run phpunit when php, xml or test files are modified
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml index f0919df3bea..e3e193e61f0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -276,10 +276,12 @@ steps: - name: nodb-php7.3 image: nextcloudci/php7.3:php7.3-4 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite - name: nodb-php7.4 image: nextcloudci/php7.4:2 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite services: @@ -310,10 +312,12 @@ steps: - name: sqlite-php7.3 image: nextcloudci/php7.3:php7.3-4 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite - name: sqlite-php7.4 image: nextcloudci/php7.4:2 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite services: @@ -340,6 +344,7 @@ steps: - name: mariadb10.1-php7.2 image: nextcloudci/php7.2:php7.2-13 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb services: @@ -375,6 +380,7 @@ steps: - name: mariadb10.2-php7.2 image: nextcloudci/php7.2:php7.2-13 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb services: @@ -409,6 +415,7 @@ steps: - name: mariadb10.3-php7.2 image: nextcloudci/php7.2:php7.2-13 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb services: @@ -443,6 +450,7 @@ steps: - name: mariadb10.4-php7.3 image: nextcloudci/php7.3:php7.3-4 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb services: @@ -478,6 +486,7 @@ steps: - name: mysql-php7.2 image: nextcloudci/php7.2:php7.2-13 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql services: @@ -514,6 +523,7 @@ steps: - name: mysql-php7.2 image: nextcloudci/php7.2:php7.2-13 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql services: @@ -546,6 +556,7 @@ steps: - name: mysql-php7.3 image: nextcloudci/php7.3:php7.3-4 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql services: @@ -578,6 +589,7 @@ steps: - name: mysql5.6-php7.2 image: nextcloudci/php7.2:php7.2-13 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql services: @@ -612,6 +624,7 @@ steps: - name: postgres-php7.3 image: nextcloudci/php7.3:php7.3-4 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - sleep 10 # gives the database enough time to initialize - POSTGRES=9 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql @@ -647,6 +660,7 @@ steps: - name: postgres-php7.2 image: nextcloudci/php7.2:php7.2-13 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - sleep 10 # gives the database enough time to initialize - POSTGRES=10 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql @@ -681,6 +695,7 @@ steps: - name: postgres-php7.2 image: nextcloudci/php7.2:php7.2-13 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - sleep 10 # gives the database enough time to initialize - POSTGRES=11 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql @@ -716,6 +731,7 @@ steps: - name: mysqlmb4-php7.2 image: nextcloudci/php7.2:php7.2-13 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4 services: @@ -751,6 +767,7 @@ steps: - name: mysqlmb4-php7.3 image: nextcloudci/php7.3:php7.3-4 commands: + - bash tests/drone-run-php-tests.sh || exit 0 - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4 services: |