From 002df3813d13c5accd36d7943af2b17376a6d1ac Mon Sep 17 00:00:00 2001 From: Average Dude Date: Fri, 14 Feb 2020 14:14:14 +0100 Subject: OpenAPI clients generation --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e9c1898f3..0b7332e0b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ stages: - build-and-lint - test - docker-nightly + - clients #before_script: # - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml' @@ -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: -- cgit v1.2.3