Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Silvie Illesova
CI CD
Commits
0838307b
Commit
0838307b
authored
Nov 11, 2021
by
Silvie Illesova
Browse files
Uploaded, .cpp file, cmake and .yml file
parents
Pipeline
#23358
failed with stages
in 8 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
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;
}'
CMakeLists.txt
0 → 100644
View file @
0838307b
cmake_minimum_required
(
VERSION 3.10
)
project
(
HandsOn
)
add_executable
(
bin1 code1.cpp
)
add_executable
(
bin2 code2.cpp
)
code1.cpp
0 → 100644
View file @
0838307b
int
main
()
{
return
0
;
}
code2.cpp
0 → 100644
View file @
0838307b
int
main
()
{
return
-
1
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment