From 6a0eb924559480d1cbe554163e16bbefe246ce69 Mon Sep 17 00:00:00 2001
From: Erwan Rouchet <rouchet@teklia.com>
Date: Thu, 27 Jun 2019 09:21:58 +0000
Subject: [PATCH] Fix OpenAPI

---
 .gitlab-ci.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 21e4b436dc..c702927b34 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,7 @@ before_script:
   - apk --update add build-base
   # Custom line to install our own deps from Git using GitLab CI credentials
   - "pip install -e git+https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/arkindex/common#egg=arkindex-common"
-  - "pip install -e git+https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/arkindex/ponos#egg=arkindex-ponos"
+  - "pip install -e git+https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/arkindex/ponos#egg=ponos-server"
   - pip install -r tests-requirements.txt codecov
 
 variables:
@@ -47,7 +47,11 @@ backend-openapi:
   stage: build
   image: registry.gitlab.com/arkindex/backend/openapi:latest
 
-  before_script: []
+  before_script:
+    - pip uninstall -y arkindex-common ponos-server
+    - "pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/arkindex/common#egg=arkindex-common"
+    - "pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/arkindex/ponos#egg=ponos-server"
+
   script:
     - mkdir -p output
     - pip install --no-deps -e .
-- 
GitLab