Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CI CD
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
Silvie Illesova
CI CD
Commits
0838307b
Commit
0838307b
authored
3 years ago
by
Silvie Illesova
Browse files
Options
Downloads
Patches
Plain Diff
Uploaded, .cpp file, cmake and .yml file
parents
No related branches found
Branches containing commit
Tags
v2.0.0-beta.4
Tags containing commit
No related merge requests found
Pipeline
#23358
failed
3 years ago
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+32
-0
32 additions, 0 deletions
.gitlab-ci.yml
CMakeLists.txt
+5
-0
5 additions, 0 deletions
CMakeLists.txt
code1.cpp
+3
-0
3 additions, 0 deletions
code1.cpp
code2.cpp
+3
-0
3 additions, 0 deletions
code2.cpp
with
43 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
32
−
0
View file @
0838307b
image
:
ubuntu:rolling
stages
:
-
build
-
test
build_codes
:
stage
:
build
artifacts
:
paths
:
-
build/
script
:
-
'
cmake
-Bbuild
-S.'
-
'
cmake
--build'
test_return_value_1
:
stage
:
test
dependencies
:
-
build_codes
script
:
-
'
./bin1
&&
echo
"Job
OK"
||
{
echo
"Job
ERROR:
$?";exit
1;
}'
test_return_value_2
:
stage
:
test
dependencies
:
-
build_codes
script
:
-
'
./bin2
&&
echo
"Job
OK"
||
{
echo
"Job
ERROR:
$?";exit
1;
}'
This diff is collapsed.
Click to expand it.
CMakeLists.txt
0 → 100644
+
5
−
0
View file @
0838307b
cmake_minimum_required
(
VERSION 3.10
)
project
(
HandsOn
)
add_executable
(
bin1 code1.cpp
)
add_executable
(
bin2 code2.cpp
)
This diff is collapsed.
Click to expand it.
code1.cpp
0 → 100644
+
3
−
0
View file @
0838307b
int
main
()
{
return
0
;
}
This diff is collapsed.
Click to expand it.
code2.cpp
0 → 100644
+
3
−
0
View file @
0838307b
int
main
()
{
return
-
1
;
}
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