Skip to content

Commit 0543661

Browse files
Merge pull request #1383 from nextcloud/improve-ci-speed
clone depth of 1 and execute integration tests first
2 parents b7eec45 + c70d100 commit 0543661

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.drone.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
pipeline:
2+
clone:
3+
image: plugins/git
4+
depth: 1
25
jsunit:
36
image: nextcloudci/jsunit:1.0.6
47
commands:
@@ -9,7 +12,6 @@ pipeline:
912
nodb-php5.6:
1013
image: nextcloudci/php5.6:php5.6-2
1114
commands:
12-
- git submodule update --init
1315
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
1416
when:
1517
matrix:
@@ -18,7 +20,6 @@ pipeline:
1820
nodb-php7.0:
1921
image: nextcloudci/php7.0:php7.0-2
2022
commands:
21-
- git submodule update --init
2223
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
2324
when:
2425
matrix:
@@ -27,7 +28,6 @@ pipeline:
2728
nodb-php7.1:
2829
image: nextcloudci/php7.1:php7.1-3
2930
commands:
30-
- git submodule update --init
3131
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
3232
when:
3333
matrix:
@@ -36,7 +36,6 @@ pipeline:
3636
sqlite-php5.6:
3737
image: nextcloudci/php5.6:php5.6-2
3838
commands:
39-
- git submodule update --init
4039
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
4140
when:
4241
matrix:
@@ -45,7 +44,6 @@ pipeline:
4544
sqlite-php7.0:
4645
image: nextcloudci/php7.0:php7.0-2
4746
commands:
48-
- git submodule update --init
4947
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
5048
when:
5149
matrix:
@@ -54,7 +52,6 @@ pipeline:
5452
sqlite-php7.1:
5553
image: nextcloudci/php7.1:php7.1-3
5654
commands:
57-
- git submodule update --init
5855
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
5956
when:
6057
matrix:
@@ -64,7 +61,6 @@ pipeline:
6461
image: nextcloudci/php5.6:php5.6-2
6562
commands:
6663
- sleep 15 # gives the database enough time to initialize
67-
- git submodule update --init
6864
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
6965
when:
7066
matrix:
@@ -74,7 +70,6 @@ pipeline:
7470
image: nextcloudci/php5.6:php5.6-2
7571
commands:
7672
- sleep 10 # gives the database enough time to initialize
77-
- git submodule update --init
7873
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
7974
when:
8075
matrix:
@@ -83,7 +78,6 @@ pipeline:
8378
integration:
8479
image: nextcloudci/php7.0:php7.0-2
8580
commands:
86-
- git submodule update --init
8781
- ./occ maintenance:install --admin-pass=admin
8882
- cd build/integration
8983
- ./run.sh
@@ -93,6 +87,7 @@ pipeline:
9387

9488
matrix:
9589
include:
90+
- TESTS: integration
9691
- TESTS: jsunit
9792
- DB: NODB
9893
PHP: 5.6
@@ -110,7 +105,6 @@ matrix:
110105
PHP: 5.6
111106
- DB: postgres
112107
PHP: 5.6
113-
- TESTS: integration
114108

115109
services:
116110
cache:

0 commit comments

Comments
 (0)