|
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.4: |
7 | 10 | image: nextcloudci/php5.4:1.0.7 |
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.4 |
12 | 18 | nodb-php5.5: |
13 | 19 | image: nextcloudci/php5.5:1.0.7 |
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: 5.5 |
18 | 27 | nodb-php5.6: |
19 | 28 | image: nextcloudci/php5.6:1.0.6 |
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: 5.6 |
24 | 36 | nodb-php7.0: |
25 | 37 | image: nextcloudci/php7.0:1.0.9 |
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=NODB ./autotest.sh sqlite |
| 41 | + when: |
| 42 | + matrix: |
| 43 | + DB: NODB |
| 44 | + PHP: "7.0" |
30 | 45 | sqlite-php5.4: |
31 | 46 | image: nextcloudci/php5.4:1.0.7 |
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: 5.4 |
36 | 54 | sqlite-php5.5: |
37 | 55 | image: nextcloudci/php5.5:1.0.7 |
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: 5.5 |
42 | 63 | sqlite-php5.6: |
43 | 64 | image: nextcloudci/php5.6:1.0.6 |
44 | 65 | commands: |
45 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
46 | 66 | - git submodule update --init |
47 | 67 | - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite |
| 68 | + when: |
| 69 | + matrix: |
| 70 | + DB: sqlite |
| 71 | + PHP: 5.6 |
48 | 72 | sqlite-php7.0: |
49 | 73 | image: nextcloudci/php7.0:1.0.9 |
50 | 74 | commands: |
51 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
52 | 75 | - git submodule update --init |
53 | 76 | - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite |
| 77 | + when: |
| 78 | + matrix: |
| 79 | + DB: sqlite |
| 80 | + PHP: "7.0" |
54 | 81 | mysql-php5.6: |
55 | 82 | image: nextcloudci/php5.6:1.0.6 |
56 | 83 | commands: |
57 | 84 | - sleep 15 # gives the database enough time to initialize |
58 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
59 | 85 | - git submodule update --init |
60 | 86 | - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql |
| 87 | + when: |
| 88 | + matrix: |
| 89 | + DB: mysql |
| 90 | + PHP: 5.6 |
61 | 91 | postgres-php5.6: |
62 | 92 | image: nextcloudci/php5.6:1.0.6 |
63 | 93 | commands: |
64 | 94 | - sleep 10 # gives the database enough time to initialize |
65 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
66 | 95 | - git submodule update --init |
67 | 96 | - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql |
| 97 | + when: |
| 98 | + matrix: |
| 99 | + DB: postgres |
| 100 | + PHP: 5.6 |
68 | 101 | integration: |
69 | 102 | image: nextcloudci/php7.0:1.0.9 |
70 | 103 | commands: |
71 | | - - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues |
72 | 104 | - git submodule update --init |
73 | 105 | - ./occ maintenance:install --admin-pass=admin |
74 | 106 | - cd build/integration |
75 | 107 | - ./run.sh |
| 108 | + when: |
| 109 | + matrix: |
| 110 | + TESTS: integration |
76 | 111 |
|
77 | | -compose: |
| 112 | + |
| 113 | + |
| 114 | +matrix: |
| 115 | + include: |
| 116 | + - TESTS: integration |
| 117 | + - TESTS: jsunit |
| 118 | + - DB: NODB |
| 119 | + PHP: 5.4 |
| 120 | + - DB: NODB |
| 121 | + PHP: 5.5 |
| 122 | + - DB: NODB |
| 123 | + PHP: 5.6 |
| 124 | + - DB: NODB |
| 125 | + PHP: 7.0 |
| 126 | + - DB: sqlite |
| 127 | + PHP: 5.4 |
| 128 | + - DB: sqlite |
| 129 | + PHP: 5.5 |
| 130 | + - DB: sqlite |
| 131 | + PHP: 5.6 |
| 132 | + - DB: sqlite |
| 133 | + PHP: 7.0 |
| 134 | + - DB: mysql |
| 135 | + PHP: 5.6 |
| 136 | + - DB: postgres |
| 137 | + PHP: 5.6 |
| 138 | + |
| 139 | +services: |
78 | 140 | cache: |
79 | 141 | image: redis |
80 | 142 | postgres: |
81 | 143 | image: postgres |
82 | 144 | environment: |
83 | 145 | - POSTGRES_USER=oc_autotest |
84 | 146 | - POSTGRES_PASSWORD=oc_autotest |
| 147 | + when: |
| 148 | + matrix: |
| 149 | + DB: postgres |
85 | 150 | mysql: |
86 | 151 | image: mysql |
87 | 152 | environment: |
88 | 153 | - MYSQL_ROOT_PASSWORD=owncloud |
89 | 154 | - MYSQL_USER=oc_autotest |
90 | 155 | - MYSQL_PASSWORD=owncloud |
91 | 156 | - MYSQL_DATABASE=oc_autotest |
| 157 | + when: |
| 158 | + matrix: |
| 159 | + DB: mysql |
0 commit comments