Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Compilers
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mmcs
Compilers
Commits
28bc56ce
Commit
28bc56ce
authored
4 years ago
by
Anton Bagliy
Browse files
Options
Downloads
Patches
Plain Diff
ADD: run all test stages in gitlab ci and pass in names
parent
4b036fbe
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+73
-15
73 additions, 15 deletions
.gitlab-ci.yml
NunitReportParser/Program.cs
+10
-3
10 additions, 3 deletions
NunitReportParser/Program.cs
grade.sh
+8
-8
8 additions, 8 deletions
grade.sh
with
91 additions
and
26 deletions
.gitlab-ci.yml
+
73
−
15
View file @
28bc56ce
...
@@ -17,18 +17,18 @@ build_all:
...
@@ -17,18 +17,18 @@ build_all:
-
./build.sh
-
./build.sh
tags
:
tags
:
-
docker
-
docker
artifacts
:
#
artifacts:
paths
:
#
paths:
-
./NunitReportParser/bin/Debug/NunitReportParser.exe
#
- ./NunitReportParser/bin/Debug/NunitReportParser.exe
-
./TestSimpleLexer/bin/Debug/TestSimpleLexer.dll
#
- ./TestSimpleLexer/bin/Debug/TestSimpleLexer.dll
-
./TestLexer/bin/Debug/TestLexer.dll
#
- ./TestLexer/bin/Debug/TestLexer.dll
-
./TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll
#
- ./TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll
-
./TestDescentParser/bin/Debug/TestDescentParser.dll
#
- ./TestDescentParser/bin/Debug/TestDescentParser.dll
-
./TestGeneratedParser/bin/Debug/TestGeneratedParser.dll
#
- ./TestGeneratedParser/bin/Debug/TestGeneratedParser.dll
-
./TestASTParser/bin/Debug/TestASTParser.dll
#
- ./TestASTParser/bin/Debug/TestASTParser.dll
-
./TestVisitors/bin/Debug/TestVisitors.dll
#
- ./TestVisitors/bin/Debug/TestVisitors.dll
-
./TestCodeGenerator/bin/Debug/TestCodeGenerator.dll
#
- ./TestCodeGenerator/bin/Debug/TestCodeGenerator.dll
expire_in
:
1 week
#
expire_in: 1 week
testsimplelexer
:
testsimplelexer
:
...
@@ -36,8 +36,9 @@ testsimplelexer:
...
@@ -36,8 +36,9 @@ testsimplelexer:
image
:
czen/ubuntu_xbuild
image
:
czen/ubuntu_xbuild
script
:
script
:
-
./prebuild.sh
-
./prebuild.sh
-
./build.sh
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestSimpleLexer/bin/Debug/TestSimpleLexer.dll
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestSimpleLexer/bin/Debug/TestSimpleLexer.dll
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${
TRAVIS_BUILD_DIR} ${TRAVIS_REPO_SLUG
}
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${
CI_PROJECT_DIR} ${GITLAB_USER_LOGIN
}
tags
:
tags
:
-
docker
-
docker
...
@@ -46,8 +47,9 @@ testlexer:
...
@@ -46,8 +47,9 @@ testlexer:
image
:
czen/ubuntu_xbuild
image
:
czen/ubuntu_xbuild
script
:
script
:
-
./prebuild.sh
-
./prebuild.sh
-
./build.sh
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestLexer/bin/Debug/TestLexer.dll
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestLexer/bin/Debug/TestLexer.dll
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${
TRAVIS_BUILD_DIR} ${TRAVIS_REPO_SLUG
}
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${
CI_PROJECT_DIR} ${GITLAB_USER_LOGIN
}
tags
:
tags
:
-
docker
-
docker
...
@@ -56,8 +58,64 @@ testgeneratedlexer:
...
@@ -56,8 +58,64 @@ testgeneratedlexer:
image
:
czen/ubuntu_xbuild
image
:
czen/ubuntu_xbuild
script
:
script
:
-
./prebuild.sh
-
./prebuild.sh
-
./build.sh
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${TRAVIS_BUILD_DIR} ${TRAVIS_REPO_SLUG}
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
tags
:
-
docker
testdescentparser
:
stage
:
descentparser
image
:
czen/ubuntu_xbuild
script
:
-
./prebuild.sh
-
./build.sh
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestDescentParser/bin/Debug/TestDescentParser.dll
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
tags
:
-
docker
testgeneratedparser
:
stage
:
generatedparser
image
:
czen/ubuntu_xbuild
script
:
-
./prebuild.sh
-
./build.sh
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestGeneratedParser/bin/Debug/TestGeneratedParser.dll
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
tags
:
-
docker
testastparser
:
stage
:
astparser
image
:
czen/ubuntu_xbuild
script
:
-
./prebuild.sh
-
./build.sh
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestASTParser/bin/Debug/TestASTParser.dll
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
tags
:
-
docker
testvisitors
:
stage
:
visitors
image
:
czen/ubuntu_xbuild
script
:
-
./prebuild.sh
-
./build.sh
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestVisitors/bin/Debug/TestVisitors.dll
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
tags
:
-
docker
testcodegenerator
:
stage
:
codegenerator
image
:
czen/ubuntu_xbuild
script
:
-
./prebuild.sh
-
./build.sh
-
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe --labels=ON TestCodeGenerator/bin/Debug/TestCodeGenerator.dll
-
mono NunitReportParser/bin/Debug/NunitReportParser.exe ${CI_PROJECT_DIR} ${GITLAB_USER_LOGIN}
tags
:
tags
:
-
docker
-
docker
\ No newline at end of file
This diff is collapsed.
Click to expand it.
NunitReportParser/Program.cs
+
10
−
3
View file @
28bc56ce
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.IO
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.CompilerServices
;
...
@@ -165,8 +165,15 @@ namespace NunitReport
...
@@ -165,8 +165,15 @@ namespace NunitReport
basePath
=
args
[
0
];
basePath
=
args
[
0
];
filePath
=
basePath
+
@"/TestResult.xml"
;
filePath
=
basePath
+
@"/TestResult.xml"
;
//userName = args[1].Split('/')[0];
//userName = args[1].Split('/')[0];
string
repoName
=
args
[
1
].
Split
(
'/'
)[
1
];
nameparts
=
args
[
1
].
Split
(
'/'
);
string
repoName
=
""
;
string
userName
=
""
;
if
(
nameparts
.
Length
>
1
)
{
repoName
=
nameparts
[
1
];
userName
=
repoName
.
Substring
(
23
,
repoName
.
Length
-
23
);
userName
=
repoName
.
Substring
(
23
,
repoName
.
Length
-
23
);
}
else
{
userName
=
args
[
1
];
}
}
}
else
else
{
{
...
...
This diff is collapsed.
Click to expand it.
grade.sh
+
8
−
8
View file @
28bc56ce
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestSimpleLexer/bin/Debug/TestSimpleLexer.dll
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestSimpleLexer/bin/Debug/TestSimpleLexer.dll
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
TRAVIS_BUILD_DIR
}
${
TRAVIS_REPO_SLUG
}
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
CI_PROJECT_DIR
}
${
GITLAB_USER_LOGIN
}
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestLexer/bin/Debug/TestLexer.dll
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestLexer/bin/Debug/TestLexer.dll
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
TRAVIS_BUILD_DIR
}
${
TRAVIS_REPO_SLUG
}
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
CI_PROJECT_DIR
}
${
GITLAB_USER_LOGIN
}
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
TRAVIS_BUILD_DIR
}
${
TRAVIS_REPO_SLUG
}
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
CI_PROJECT_DIR
}
${
GITLAB_USER_LOGIN
}
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestDescentParser/bin/Debug/TestDescentParser.dll
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestDescentParser/bin/Debug/TestDescentParser.dll
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
TRAVIS_BUILD_DIR
}
${
TRAVIS_REPO_SLUG
}
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
CI_PROJECT_DIR
}
${
GITLAB_USER_LOGIN
}
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestGeneratedParser/bin/Debug/TestGeneratedParser.dll
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestGeneratedParser/bin/Debug/TestGeneratedParser.dll
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
TRAVIS_BUILD_DIR
}
${
TRAVIS_REPO_SLUG
}
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
CI_PROJECT_DIR
}
${
GITLAB_USER_LOGIN
}
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestASTParser/bin/Debug/TestASTParser.dll
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestASTParser/bin/Debug/TestASTParser.dll
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
TRAVIS_BUILD_DIR
}
${
TRAVIS_REPO_SLUG
}
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
CI_PROJECT_DIR
}
${
GITLAB_USER_LOGIN
}
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestVisitors/bin/Debug/TestVisitors.dll
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestVisitors/bin/Debug/TestVisitors.dll
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
TRAVIS_BUILD_DIR
}
${
TRAVIS_REPO_SLUG
}
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
CI_PROJECT_DIR
}
${
GITLAB_USER_LOGIN
}
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestCodeGenerator/bin/Debug/TestCodeGenerator.dll
mono packages/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe
--labels
=
ON TestCodeGenerator/bin/Debug/TestCodeGenerator.dll
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
TRAVIS_BUILD_DIR
}
${
TRAVIS_REPO_SLUG
}
mono NunitReportParser/bin/Debug/NunitReportParser.exe
${
CI_PROJECT_DIR
}
${
GITLAB_USER_LOGIN
}
\ No newline at end of file
\ 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