From ea2b38db4e84016fbfb769f2b99637299ce58fbd Mon Sep 17 00:00:00 2001
From: Albin Henriksson <albhe428@student.liu.se>
Date: Tue, 16 Feb 2021 11:04:27 +0100
Subject: [PATCH] #2: Changing folder on each script and artifact path

---
 .gitlab-ci.yml | 21 +++++----------------
 1 file changed, 5 insertions(+), 16 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 693d8d01..fd43e137 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,8 +15,8 @@ install:
     untracked: true
     expire_in: 60 mins
     paths:
-      - .npm/
-      - node_modules/
+      - client/.npm/
+      - client/node_modules/
 
 build:
   stage: build
@@ -25,7 +25,7 @@ build:
     - CI=false npm run build
   artifacts:
     paths:
-      - build
+      - client/build
     expire_in: 60 mins
   dependencies:
     - install
@@ -33,6 +33,7 @@ build:
 linting:
   stage: quality
   script:
+    - cd client
     - npm run lint
   dependencies:
     - install
@@ -40,21 +41,9 @@ linting:
 test:unit:
   stage: quality
   script:
+    - cd client
     - npm run test:coverage
   dependencies:
     - install
   coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
 
-test:e2e:
-  stage: quality
-  image: cypress/browsers:chrome69
-  dependencies:
-    - install
-    - build
-  script:
-    - npm run e2e:ci
-  artifacts:
-    paths:
-      - cypress/screenshots
-      - cypress/videos
-    expire_in: 1 day
-- 
GitLab