Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
abbenhoumi
IntegrationProjet
Commits
6a15b3b1
Commit
6a15b3b1
authored
Apr 05, 2020
by
benhoumine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature/gitlab_ci : ajout du gitlab ci
parent
5edd0c23
Pipeline
#5955
failed with stages
in 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
.gitlab-ci.yml
.gitlab-ci.yml
+31
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
6a15b3b1
image
:
maven:latest
stages
:
-
build
-
test
-
run
variables
:
MAVEN_CLI_OPTS
:
"
-s
.m2/settings.xml
--batch-mode"
MAVEN_OPTS
:
"
-Dmaven.repo.local=.m2/repository"
cache
:
paths
:
-
.m2/repository/
-
target/
build
:
stage
:
build
script
:
-
mvn $MAVEN_CLI_OPTS compile
test
:
stage
:
test
script
:
-
mvn $MAVEN_CLI_OPTS test
run
:
stage
:
run
script
:
-
mvn $MAVEN_CLI_OPTS package
-
mvn $MAVEN_CLI_OPTS exec:java -Dexec.mainClass="com.example.app.App"
\ No newline at end of file
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