aboutsummaryrefslogtreecommitdiffhomepage
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-02-14 14:14:14 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-02-14 14:14:14 +0100
commit7b62b1d5f012ace46c8651b98efeb5be9f35455e (patch)
tree58729dae12b53c0f368212ce334826b8093c6f4a /.gitlab-ci.yml
parent68ca61941e3a7ca4c018566d2c496afd27dbd76d (diff)
parent002df3813d13c5accd36d7943af2b17376a6d1ac (diff)
downloadPeerTube-7b62b1d5f012ace46c8651b98efeb5be9f35455e.tar.gz
PeerTube-7b62b1d5f012ace46c8651b98efeb5be9f35455e.tar.zst
PeerTube-7b62b1d5f012ace46c8651b98efeb5be9f35455e.zip
OpenAPI clients generation
See merge request framasoft/peertube/PeerTube!28, which continued https://github.com/Chocobozzz/PeerTube/pull/2060
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml16
1 files changed, 16 insertions, 0 deletions
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:
4 - build-and-lint 4 - build-and-lint
5 - test 5 - test
6 - docker-nightly 6 - docker-nightly
7 - clients
7 8
8#before_script: 9#before_script:
9# - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml' 10# - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml'
@@ -84,6 +85,21 @@ cache:
84# script: 85# script:
85# - NODE_PENDING_JOB_WAIT=1000 npm run ci -- api-$CI_NODE_INDEX 86# - NODE_PENDING_JOB_WAIT=1000 npm run ci -- api-$CI_NODE_INDEX
86 87
88build-openapi-clients:
89 stage: clients
90 only:
91 refs:
92 - master
93 - schedules
94 changes:
95 - support/doc/api/openapi.yaml
96 script:
97 - apt-get update -qq
98 - apt-get -yqqq install openjdk-8-jre
99 - yarn install --pure-lockfile
100 - scripts/openapi-peertube-version.sh
101 - scripts/openapi-clients.sh
102
87build-nightly: 103build-nightly:
88 stage: docker-nightly 104 stage: docker-nightly
89 only: 105 only: