|
1 | | -build: |
| 1 | +pipeline: |
2 | 2 | jsunit: |
3 | 3 | image: nextcloudci/jsunit:1.0.6 |
4 | 4 | commands: |
5 | 5 | - ./autotest-js.sh |
| 6 | + when: |
| 7 | + matrix: |
| 8 | + TESTS: jsunit |
6 | 9 | nodb-php5.6: |
7 | 10 | image: nextcloudci/php5.6:php5.6-2 |
8 | 11 | commands: |
9 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
10 | 12 | - git submodule update --init |
11 | 13 | - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite |
| 14 | + when: |
| 15 | + matrix: |
| 16 | + DB: NODB |
| 17 | + PHP: 5.6 |
12 | 18 | nodb-php7.0: |
13 | 19 | image: nextcloudci/php7.0:php7.0-2 |
14 | 20 | commands: |
15 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
16 | 21 | - git submodule update --init |
17 | 22 | - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite |
| 23 | + when: |
| 24 | + matrix: |
| 25 | + DB: NODB |
| 26 | + PHP: "7.0" |
18 | 27 | nodb-php7.1: |
19 | 28 | image: nextcloudci/php7.1:php7.1-3 |
20 | 29 | commands: |
21 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
22 | 30 | - git submodule update --init |
23 | 31 | - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite |
| 32 | + when: |
| 33 | + matrix: |
| 34 | + DB: NODB |
| 35 | + PHP: 7.1 |
24 | 36 | sqlite-php5.6: |
25 | 37 | image: nextcloudci/php5.6:php5.6-2 |
26 | 38 | commands: |
27 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
28 | 39 | - git submodule update --init |
29 | 40 | - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite |
| 41 | + when: |
| 42 | + matrix: |
| 43 | + DB: sqlite |
| 44 | + PHP: 5.6 |
30 | 45 | sqlite-php7.0: |
31 | 46 | image: nextcloudci/php7.0:php7.0-2 |
32 | 47 | commands: |
33 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
34 | 48 | - git submodule update --init |
35 | 49 | - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite |
| 50 | + when: |
| 51 | + matrix: |
| 52 | + DB: sqlite |
| 53 | + PHP: "7.0" |
36 | 54 | sqlite-php7.1: |
37 | 55 | image: nextcloudci/php7.1:php7.1-3 |
38 | 56 | commands: |
39 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
40 | 57 | - git submodule update --init |
41 | 58 | - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite |
| 59 | + when: |
| 60 | + matrix: |
| 61 | + DB: sqlite |
| 62 | + PHP: 7.1 |
42 | 63 | mysql-php5.6: |
43 | 64 | image: nextcloudci/php5.6:php5.6-2 |
44 | 65 | commands: |
45 | 66 | - sleep 15 # gives the database enough time to initialize |
46 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
47 | 67 | - git submodule update --init |
48 | 68 | - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql |
| 69 | + when: |
| 70 | + matrix: |
| 71 | + DB: mysql |
| 72 | + PHP: 5.6 |
49 | 73 | postgres-php5.6: |
50 | 74 | image: nextcloudci/php5.6:php5.6-2 |
51 | 75 | commands: |
52 | 76 | - sleep 10 # gives the database enough time to initialize |
53 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
54 | 77 | - git submodule update --init |
55 | 78 | - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql |
| 79 | + when: |
| 80 | + matrix: |
| 81 | + DB: postgres |
| 82 | + PHP: 5.6 |
56 | 83 | integration: |
57 | 84 | image: nextcloudci/php7.0:php7.0-2 |
58 | 85 | commands: |
59 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
60 | 86 | - git submodule update --init |
61 | 87 | - ./occ maintenance:install --admin-pass=admin |
62 | 88 | - cd build/integration |
63 | 89 | - ./run.sh |
| 90 | + when: |
| 91 | + matrix: |
| 92 | + TESTS: integration |
64 | 93 |
|
65 | | -compose: |
| 94 | +matrix: |
| 95 | + include: |
| 96 | + - TESTS: jsunit |
| 97 | + - DB: NODB |
| 98 | + PHP: 5.6 |
| 99 | + - DB: NODB |
| 100 | + PHP: 7.0 |
| 101 | + - DB: NODB |
| 102 | + PHP: 7.1 |
| 103 | + - DB: sqlite |
| 104 | + PHP: 5.6 |
| 105 | + - DB: sqlite |
| 106 | + PHP: 7.0 |
| 107 | + - DB: sqlite |
| 108 | + PHP: 7.1 |
| 109 | + - DB: mysql |
| 110 | + PHP: 5.6 |
| 111 | + - DB: postgres |
| 112 | + PHP: 5.6 |
| 113 | + - TESTS: integration |
| 114 | + |
| 115 | +services: |
66 | 116 | cache: |
67 | 117 | image: redis |
68 | 118 | postgres: |
69 | 119 | image: postgres |
70 | 120 | environment: |
71 | 121 | - POSTGRES_USER=oc_autotest |
72 | 122 | - POSTGRES_PASSWORD=oc_autotest |
| 123 | + when: |
| 124 | + matrix: |
| 125 | + DB: postgres |
73 | 126 | mysql: |
74 | 127 | image: mysql |
75 | 128 | environment: |
76 | 129 | - MYSQL_ROOT_PASSWORD=owncloud |
77 | 130 | - MYSQL_USER=oc_autotest |
78 | 131 | - MYSQL_PASSWORD=owncloud |
79 | 132 | - MYSQL_DATABASE=oc_autotest |
| 133 | + when: |
| 134 | + matrix: |
| 135 | + DB: mysql |
0 commit comments