From 206e7e15f3b34c60e6b311b64049031e26940a57 Mon Sep 17 00:00:00 2001
From: David Trattnig <david.trattnig@o94.at>
Date: Mon, 22 Jun 2020 20:08:38 +0200
Subject: [PATCH] Install node in other stage too.

---
 .gitlab-ci.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6d01d0f..391149a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,8 +20,6 @@ bundle_and_test:
     - apt-get install -y curl
     - curl -sL https://deb.nodesource.com/setup_10.x | bash -
     - apt-get install -y nodejs
-    # - apt-get install -y npm
-    - apt-get install -y build-essential
     - npm install -g @apidevtools/swagger-cli
 
   script:
@@ -45,7 +43,10 @@ test_api:
 pages:
   stage: deploy
   before_script:
-    # - apt install -y nodejs npm
+    - apt-get update
+    - apt-get install -y curl
+    - curl -sL https://deb.nodesource.com/setup_10.x | bash -
+    - apt-get install -y nodejs
     - npm install swagger-ui-dist@3.22.1
   script:
     - cp -rp node_modules/swagger-ui-dist/* ./public
-- 
GitLab