Skip to content
Snippets Groups Projects
Commit 97969939 authored by Varga Máté Tibor's avatar Varga Máté Tibor :shark:
Browse files

Included tests in CI pipeline

parent 3c37b4fc
No related branches found
No related tags found
1 merge request!40Included tests in CI pipeline
......@@ -4,7 +4,7 @@ image: mcr.microsoft.com/dotnet/sdk:6.0
stages:
- build
#- test
- test
- deploy
before_script:
......@@ -31,20 +31,20 @@ build:view:
# Test
# (Uses Linux-based runner, because windows tag is NOT specified.)
# test:model:
# stage: test
# before_script:
# # Restore NuGet packages to the local .nuget folder (inside the project directory).
# - dotnet restore CCity.Tests --packages .nuget
# script:
# - dotnet test CCity.Tests
# # Cache and keep downloaded NuGet dependencies between CI pipelines
# cache:
# # The CI_COMMIT_REF_SLUG is a slug for the branch or tag name,
# # so there will be a separate cache for each branch.
# key: "unittest-$CI_COMMIT_REF_SLUG"
# paths:
# - .nuget
test:model:
stage: test
before_script:
# Restore NuGet packages to the local .nuget folder (inside the project directory).
- dotnet restore CCity.Model.Test --packages .nuget
script:
- dotnet test CCity.Model.Test
# Cache and keep downloaded NuGet dependencies between CI pipelines
cache:
# The CI_COMMIT_REF_SLUG is a slug for the branch or tag name,
# so there will be a separate cache for each branch.
key: "unittest-$CI_COMMIT_REF_SLUG"
paths:
- .nuget
# Documentation
# (Uses Linux-based runner, because windows tag is NOT specified.)
......@@ -62,5 +62,6 @@ pages:
paths:
- public
expire_in: 1 day
# only:
# - master
\ No newline at end of file
only:
- master
- develop
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment