Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
my-ci-demo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Daniele Tavagnacco
my-ci-demo
Commits
41ce9b5d
Commit
41ce9b5d
authored
2 weeks ago
by
Daniele Tavagnacco
Browse files
Options
Downloads
Patches
Plain Diff
added test stage
parent
a4c7a4db
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#26415
passed
2 weeks ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-0
19 additions, 0 deletions
.gitlab-ci.yml
with
19 additions
and
0 deletions
.gitlab-ci.yml
+
19
−
0
View file @
41ce9b5d
stages
:
-
build
# section name of the CI pipeline
-
test
# other section executed AFTER 'build'
build_job
:
stage
:
build
# section where to run the job
...
...
@@ -9,3 +10,21 @@ build_job:
-
echo "Building the application..."
-
python -m py_compile program.py
-
echo "Building complete."
test_job_1
:
stage
:
test
# section where to run the job
tags
:
-
git-run-ia2
# who is running the job
script
:
-
echo "Running test group 1 ..."
-
python test_program.py
-
echo "Testing complete."
test_job_2
:
stage
:
test
# section where to run the job
tags
:
-
git-run-ia2
# who is running the job
script
:
-
echo "Running more tests in group 2..."
-
sleep
5
-
echo "Testing complete."
\ 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