Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
C Sharks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hall of Fame
C Sharks
Commits
97969939
Commit
97969939
authored
1 year ago
by
Varga Máté Tibor
Browse files
Options
Downloads
Patches
Plain Diff
Included tests in CI pipeline
parent
3c37b4fc
No related branches found
No related tags found
1 merge request
!40
Included tests in CI pipeline
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-17
18 additions, 17 deletions
.gitlab-ci.yml
with
18 additions
and
17 deletions
.gitlab-ci.yml
+
18
−
17
View file @
97969939
...
...
@@ -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.Test
s
--packages .nuget
#
script:
#
- dotnet test CCity.Test
s
#
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment