Skip to content
Snippets Groups Projects
Unverified Commit c70d1006 authored by Morris Jobke's avatar Morris Jobke
Browse files

clone depth of 1 and execute integration tests first

* specify git image
parent feb85981
No related branches found
No related tags found
No related merge requests found
pipeline: pipeline:
clone:
image: plugins/git
depth: 1
jsunit: jsunit:
image: nextcloudci/jsunit:1.0.6 image: nextcloudci/jsunit:1.0.6
commands: commands:
...@@ -9,7 +12,6 @@ pipeline: ...@@ -9,7 +12,6 @@ pipeline:
nodb-php5.6: nodb-php5.6:
image: nextcloudci/php5.6:php5.6-2 image: nextcloudci/php5.6:php5.6-2
commands: commands:
- git submodule update --init
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
when: when:
matrix: matrix:
...@@ -18,7 +20,6 @@ pipeline: ...@@ -18,7 +20,6 @@ pipeline:
nodb-php7.0: nodb-php7.0:
image: nextcloudci/php7.0:php7.0-2 image: nextcloudci/php7.0:php7.0-2
commands: commands:
- git submodule update --init
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
when: when:
matrix: matrix:
...@@ -27,7 +28,6 @@ pipeline: ...@@ -27,7 +28,6 @@ pipeline:
nodb-php7.1: nodb-php7.1:
image: nextcloudci/php7.1:php7.1-3 image: nextcloudci/php7.1:php7.1-3
commands: commands:
- git submodule update --init
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
when: when:
matrix: matrix:
...@@ -36,7 +36,6 @@ pipeline: ...@@ -36,7 +36,6 @@ pipeline:
sqlite-php5.6: sqlite-php5.6:
image: nextcloudci/php5.6:php5.6-2 image: nextcloudci/php5.6:php5.6-2
commands: commands:
- git submodule update --init
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
when: when:
matrix: matrix:
...@@ -45,7 +44,6 @@ pipeline: ...@@ -45,7 +44,6 @@ pipeline:
sqlite-php7.0: sqlite-php7.0:
image: nextcloudci/php7.0:php7.0-2 image: nextcloudci/php7.0:php7.0-2
commands: commands:
- git submodule update --init
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
when: when:
matrix: matrix:
...@@ -54,7 +52,6 @@ pipeline: ...@@ -54,7 +52,6 @@ pipeline:
sqlite-php7.1: sqlite-php7.1:
image: nextcloudci/php7.1:php7.1-3 image: nextcloudci/php7.1:php7.1-3
commands: commands:
- git submodule update --init
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
when: when:
matrix: matrix:
...@@ -64,7 +61,6 @@ pipeline: ...@@ -64,7 +61,6 @@ pipeline:
image: nextcloudci/php5.6:php5.6-2 image: nextcloudci/php5.6:php5.6-2
commands: commands:
- sleep 15 # gives the database enough time to initialize - sleep 15 # gives the database enough time to initialize
- git submodule update --init
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
when: when:
matrix: matrix:
...@@ -74,7 +70,6 @@ pipeline: ...@@ -74,7 +70,6 @@ pipeline:
image: nextcloudci/php5.6:php5.6-2 image: nextcloudci/php5.6:php5.6-2
commands: commands:
- sleep 10 # gives the database enough time to initialize - sleep 10 # gives the database enough time to initialize
- git submodule update --init
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
when: when:
matrix: matrix:
...@@ -83,7 +78,6 @@ pipeline: ...@@ -83,7 +78,6 @@ pipeline:
integration: integration:
image: nextcloudci/php7.0:php7.0-2 image: nextcloudci/php7.0:php7.0-2
commands: commands:
- git submodule update --init
- ./occ maintenance:install --admin-pass=admin - ./occ maintenance:install --admin-pass=admin
- cd build/integration - cd build/integration
- ./run.sh - ./run.sh
...@@ -93,6 +87,7 @@ pipeline: ...@@ -93,6 +87,7 @@ pipeline:
matrix: matrix:
include: include:
- TESTS: integration
- TESTS: jsunit - TESTS: jsunit
- DB: NODB - DB: NODB
PHP: 5.6 PHP: 5.6
...@@ -110,7 +105,6 @@ matrix: ...@@ -110,7 +105,6 @@ matrix:
PHP: 5.6 PHP: 5.6
- DB: postgres - DB: postgres
PHP: 5.6 PHP: 5.6
- TESTS: integration
services: services:
cache: cache:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment