diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 64c818476..0305171c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
@@ -5,6 +5,7 @@ stages: | |||
5 | - test | 5 | - test |
6 | - clients | 6 | - clients |
7 | - docker-nightly | 7 | - docker-nightly |
8 | - external-plugins | ||
8 | 9 | ||
9 | #before_script: | 10 | #before_script: |
10 | # - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml' | 11 | # - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml' |
@@ -93,7 +94,7 @@ build-openapi-clients: | |||
93 | - schedules | 94 | - schedules |
94 | changes: | 95 | changes: |
95 | - support/doc/api/openapi.yaml | 96 | - support/doc/api/openapi.yaml |
96 | script: | 97 | script: |
97 | - apt-get update -qq | 98 | - apt-get update -qq |
98 | - apt-get -yqqq install openjdk-8-jre | 99 | - apt-get -yqqq install openjdk-8-jre |
99 | - yarn install --pure-lockfile | 100 | - yarn install --pure-lockfile |
@@ -145,3 +146,31 @@ build-docker-master: | |||
145 | - master | 146 | - master |
146 | variables: | 147 | variables: |
147 | DOCKER_IMAGE_NAME: chocobozzz/peertube:production-buster | 148 | DOCKER_IMAGE_NAME: chocobozzz/peertube:production-buster |
149 | |||
150 | test-external-plugins: | ||
151 | stage: external-plugins | ||
152 | only: | ||
153 | - schedules | ||
154 | services: | ||
155 | - name: postgres:9.6 | ||
156 | alias: postgres | ||
157 | - name: redis:latest | ||
158 | alias: redis | ||
159 | - name: rroemhild/test-openldap | ||
160 | alias: ldap | ||
161 | variables: | ||
162 | PGHOST: postgres | ||
163 | PGUSER: postgres | ||
164 | REDIS_HOST: redis | ||
165 | artifacts: | ||
166 | expire_in: 1 day | ||
167 | paths: | ||
168 | - test*/logs | ||
169 | when: always | ||
170 | before_script: | ||
171 | - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml' | ||
172 | - 'sed -i -z "s/redis:\n hostname: ''localhost''/redis:\n hostname: ''redis''/" config/test.yaml' | ||
173 | - psql -c "create user peertube with password 'peertube';"; fi | ||
174 | - NOCLIENT=1 yarn install --pure-lockfile --cache-folder .yarn-cache | ||
175 | script: | ||
176 | - npm run ci -- "external-plugins" \ No newline at end of file | ||