From 6e9bb2d39cd70710d72f5da3dfdf357b78417442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20Hunderi=20Stemland?= <aasmunhs@stud.ntnu.no> Date: Thu, 5 Nov 2020 00:12:44 +0100 Subject: [PATCH] Fix --- .gitlab-ci.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0650160..0024fff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,23 +6,23 @@ variables: MYSQL_PASSWORD: '' # Default root password is empty string MYSQL_DATABASE: todo-test stages: -- build # Jobs placed in build stage will run first -- test # Jobs placed in test stage will run after build jobs + - build # Jobs placed in build stage will run first + - test # Jobs placed in test stage will run after build jobs install: -stage: build -script: -- npm install -artifacts: # Keep node_modules folder for the following stages -paths: -- node_modules + stage: build + script: + - npm install + artifacts: # Keep node_modules folder for the following stages + paths: + - node_modules prettier: -stage: test # The prettier job will run in parallel with the flow and test jobs -script: -- ./node_modules/.bin/prettier --check src/* test/* + stage: test # The prettier job will run in parallel with the flow and test jobs + script: + - ./node_modules/.bin/prettier --check src/* test/* flow: -stage: test # The flow job will run in parallel with the prettier and test jobs -script: -- ./node_modules/.bin/flow check + stage: test # The flow job will run in parallel with the prettier and test jobs + script: + - ./node_modules/.bin/flow check test: stage: test script: @@ -37,4 +37,4 @@ test: # Create database table - echo "CREATE TABLE Tasks (id INT NOT NULL AUTO_INCREMENT, title TEXT NOT NULL, done BOOL DEFAULT false, PRIMARY KEY(id));" | mysql $MYSQL_DATABASE - - npm test \ No newline at end of file + - npm test -- GitLab