Skip to content
Snippets Groups Projects

Add output mechanism as prep for next videos

Merged Dan Gitschooldude requested to merge 9-add-output-verif into master
1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
+ 10
0
@@ -4,6 +4,8 @@ stages:
@@ -4,6 +4,8 @@ stages:
- Verify
- Verify
Build code:
Build code:
 
only:
 
- merge_requests
image: gcc
image: gcc
stage: Build
stage: Build
script:
script:
@@ -13,6 +15,8 @@ Build code:
@@ -13,6 +15,8 @@ Build code:
- hello
- hello
Nominal Run:
Nominal Run:
 
only:
 
- merge_requests
image: gcc
image: gcc
stage: Run
stage: Run
script:
script:
@@ -22,6 +26,8 @@ Nominal Run:
@@ -22,6 +26,8 @@ Nominal Run:
- output
- output
Cmd-line Run:
Cmd-line Run:
 
only:
 
- merge_requests
image: gcc
image: gcc
stage: Run
stage: Run
script:
script:
@@ -31,12 +37,16 @@ Cmd-line Run:
@@ -31,12 +37,16 @@ Cmd-line Run:
- output
- output
Nominal Width Check:
Nominal Width Check:
 
only:
 
- merge_requests
stage: Verify
stage: Verify
script:
script:
- "ls output/nominal.txt" # File must exist
- "ls output/nominal.txt" # File must exist
- "! grep 'Width: [^4]' output/nominal.txt" # If any width is not 4, fail
- "! grep 'Width: [^4]' output/nominal.txt" # If any width is not 4, fail
Cmd-line Length Check:
Cmd-line Length Check:
 
only:
 
- merge_requests
stage: Verify
stage: Verify
script:
script:
- "ls output/[abcdefghijkl].txt" # Files must exist
- "ls output/[abcdefghijkl].txt" # Files must exist
Loading