Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ci-public
all-in-one
Commits
b8166783
Commit
b8166783
authored
3 years ago
by
Saeed Motevalli
Browse files
Options
Download
Email Patches
Plain Diff
Add real tests to gitlab-ci
parent
66026d51
master
1 merge request
!1
Add real tests to gitlab-ci
Pipeline
#30220
passed with stages
in 1 minute and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-37
.gitlab-ci.yml
with
17 additions
and
37 deletions
+17
-37
.gitlab-ci.yml
View file @
b8166783
stages
:
-
dummy1
-
dummy2
-
build
-
test
cache
:
key
:
test-cache
paths
:
-
test.log
-
node_modules
-
build
dummy-job1
:
stage
:
dummy1
compile-junit
:
stage
:
build
script
:
-
echo "print something 1"
-
echo "something" > test.log
-
ls
-
cat test.log
-
cd Junit; ./gradlew assemble;
dummy-job2
:
stage
:
dummy2
api-test
:
stage
:
test
script
:
-
echo "print something 2"
-
ls
-
cat test.log
when
:
manual
artifacts
:
paths
:
-
"
*.log"
expire_in
:
1 day
-
cd api; ./runTest.sh
dummy-job3
:
stage
:
dummy2
e2e-test
:
stage
:
test
script
:
-
echo "print something 3"
only
:
-
main
-
cd e2e; protractor protractor.conf
dummy-job4
:
stage
:
dummy1
unit-test
:
stage
:
test
script
:
-
echo "print something 4"
only
:
changes
:
-
api/**
\ No newline at end of file
-
cd Junit; ./gradlew test || echo ""
artifacts
:
reports
:
junit
:
'
Junit/build/test-results/junit-platform/*.xml'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help