Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
CPTR 245 - Lab Repository
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bradon Ladd
CPTR 245 - Lab Repository
Commits
3a81ee4f
Commit
3a81ee4f
authored
Feb 09, 2022
by
Bradon Ladd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stuff n things
parent
fbdf950a
Pipeline
#21120
failed
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
124 additions
and
74 deletions
+124
-74
.gitlab-ci.yml
.gitlab-ci.yml
+6
-74
.gitlab/lab-01/.gitlab-ci.yml
.gitlab/lab-01/.gitlab-ci.yml
+101
-0
.gitlab/lab-10/.gitlab-ci.yml
.gitlab/lab-10/.gitlab-ci.yml
+7
-0
lab-10/index.html
lab-10/index.html
+10
-0
No files found.
.gitlab-ci.yml
View file @
3a81ee4f
##I've written my own comments for reference
---
image
:
gitlab.cs.wallawalla.edu:5050/cptr245/student245
...
...
@@ -7,76 +6,9 @@ default:
tags
:
-
docker
##Before anything is done, move to the area directory, and execute the build script
before_script
:
-
cd area
build program
:
stage
:
build
script
:
-
g++ -o area areaFunction.cpp areaFunction.h areaMain.cpp
artifacts
:
paths
:
-
area/area
build test
:
stage
:
build
script
:
-
g++ -o test areaFunction.cpp areaFunction.h areaTest.cpp
artifacts
:
paths
:
-
area/test
format
:
stage
:
build
script
:
-
|
find . -type f \( -name "*.cpp" -or -name "*.h" \) -exec \
clang-format --dry-run --ferror-limit=1 {} + 2> errFile
err=$(<errFile)
if [[ ! -z "$err" ]]; then
echo "Detected formatting issues; please fix"
cat errFile
exit 1
fi
exit 0
allow_failure
:
true
cppcheck
:
stage
:
build
script
:
-
|
find . \( -name \*.h -o -name \*.cpp \) -exec \
cppcheck --language=c++ --enable=all --inconclusive --error-exitcode=1 \
{} +
allow_failure
:
true
cpplint
:
stage
:
build
script
:
-
|
find . \( -name \*.h -o -name \*.cpp \) -exec \
cpplint --filter=-legal/copyright \
{} +
allow_failure
:
true
test1
:
stage
:
test
script
:
./area
3
test2
:
stage
:
test
script
:
./area
5
test text diff
:
stage
:
test
script
:
-
./area 3 > stdout.txt && diff stdout.txt area3.txt
-
./area 5 > stdout.txt && diff stdout.txt area5.txt
include
:
-
local
:
"
gitlab/lab-01/.gitlab-ci.yml"
test function result
:
stage
:
test
script
:
-
./test
\ No newline at end of file
include
:
-
local
:
"
gitlab/lab-10/.gitlab-ci.yml"
...
.gitlab/lab-01/.gitlab-ci.yml
0 → 100644
View file @
3a81ee4f
---
##Before anything is done, move to the area directory, and execute the build script
lab-01 - build program
:
stage
:
build
rules
:
-
changes
:
[
area/**/*
]
script
:
-
cd area
-
g++ -o area areaFunction.cpp areaFunction.h areaMain.cpp
artifacts
:
paths
:
-
area/area
lab-01 - build test
:
stage
:
build
rules
:
-
changes
:
[
area/**/*
]
script
:
-
cd area
-
g++ -o test areaFunction.cpp areaFunction.h areaTest.cpp
artifacts
:
paths
:
-
area/test
lab-01 - format
:
stage
:
build
rules
:
-
changes
:
[
area/**/*
]
script
:
-
cd area
-
|
find . -type f \( -name "*.cpp" -or -name "*.h" \) -exec \
clang-format --dry-run --ferror-limit=1 {} + 2> errFile
err=$(<errFile)
if [[ ! -z "$err" ]]; then
echo "Detected formatting issues; please fix"
cat errFile
exit 1
fi
exit 0
allow_failure
:
true
lab-01 - cppcheck
:
stage
:
build
rules
:
-
changes
:
[
area/**/*
]
script
:
-
cd area
-
|
find . \( -name \*.h -o -name \*.cpp \) -exec \
cppcheck --language=c++ --enable=all --inconclusive --error-exitcode=1 \
{} +
allow_failure
:
true
lab-01 - cpplint
:
stage
:
build
rules
:
-
changes
:
[
area/**/*
]
script
:
-
cd area
-
|
find . \( -name \*.h -o -name \*.cpp \) -exec \
cpplint --filter=-legal/copyright \
{} +
allow_failure
:
true
lab-01 - test1
:
stage
:
test
rules
:
-
changes
:
[
area/**/*
]
script
:
-
cd area
./area
3
lab-01 - test2
:
stage
:
test
rules
:
-
changes
:
[
area/**/*
]
script
:
-
cd area
./area
5
lab-01 - test text diff
:
stage
:
test
rules
:
-
changes
:
[
area/**/*
]
script
:
-
cd area
-
./area 3 > stdout.txt && diff stdout.txt area3.txt
-
./area 5 > stdout.txt && diff stdout.txt area5.txt
lab-01 - test function result
:
stage
:
test
rules
:
-
changes
:
[
area/**/*
]
script
:
-
cd area
-
./test
***
.gitlab/lab-10/.gitlab-ci.yml
0 → 100644
View file @
3a81ee4f
---
deploy_prod
:
stage
:
deploy
script
:
-
pwd; env;
...
lab-10/index.html
0 → 100644
View file @
3a81ee4f
<!doctype html>
<html
lang=
"en"
>
<head><meta
charset=
"UTF-8"
>
<title>
Wow! A webpage!
</title>
</head>
<body>
<h1>
What an interesting webpage! Stay a while!
</h1>
</body>
</html>
Write
Preview
Markdown
is supported
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