Improve abuse api doc
[oweals/peertube.git] / .gitlab-ci.yml
index e9c1898f3245224a0efcaf8628268e4317928716..64c8184767deff4a9082edf72f2f7955bb7b730d 100644 (file)
@@ -3,6 +3,7 @@ image: chocobozzz/peertube-ci:10
 stages:
   - build-and-lint
   - test
+  - clients
   - docker-nightly
 
 #before_script:
@@ -84,6 +85,21 @@ cache:
 #  script:
 #    - NODE_PENDING_JOB_WAIT=1000 npm run ci -- api-$CI_NODE_INDEX
 
+build-openapi-clients:
+  stage: clients
+  only:
+    refs:
+      - master
+      - schedules
+    changes:
+      - support/doc/api/openapi.yaml
+  script: 
+    - apt-get update -qq
+    - apt-get -yqqq install openjdk-8-jre
+    - yarn install --pure-lockfile
+    - scripts/openapi-peertube-version.sh
+    - scripts/openapi-clients.sh
+
 build-nightly:
   stage: docker-nightly
   only: