aboutsummaryrefslogtreecommitdiffhomepage
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-27 10:58:09 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-05-04 16:21:39 +0200
commit829b794a8542b55bdfff481fa7c3593bc88cb696 (patch)
tree0f493580cad5b915f76eef5de174b2ba5e7204c5 /.gitlab-ci.yml
parent2db9c70f670c2210d103062fa143dc4888caa190 (diff)
downloadPeerTube-829b794a8542b55bdfff481fa7c3593bc88cb696.tar.gz
PeerTube-829b794a8542b55bdfff481fa7c3593bc88cb696.tar.zst
PeerTube-829b794a8542b55bdfff481fa7c3593bc88cb696.zip
Add plugin ldap tests
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml31
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
150test-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