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
81039f00
Commit
81039f00
authored
Apr 10, 2020
by
abbenhoumi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/gitlab_ci' into 'master'
Feature/gitlab ci See merge request
!4
parents
5edd0c23
6806095b
Pipeline
#5999
failed with stages
in 1 minute and 13 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
29 deletions
+27
-29
.gitlab-ci.yml
.gitlab-ci.yml
+27
-0
src/test/java/isima/F2/RamassagePoubleDepotApplicationTests.java
...t/java/isima/F2/RamassagePoubleDepotApplicationTests.java
+0
-29
No files found.
.gitlab-ci.yml
0 → 100644
View file @
81039f00
image
:
maven:latest
stages
:
-
build
-
test
-
run
cache
:
paths
:
-
.m2/repository/
-
target/
build
:
stage
:
build
script
:
-
mvn compile
test
:
stage
:
test
script
:
echo "test"
run
:
stage
:
run
script
:
-
mvn package
-
mvn exec:java -Dexec.mainClass="isima.F2.RamassagePoubleDepotApplicationTests"
src/test/java/isima/F2/RamassagePoubleDepotApplicationTests.java
deleted
100644 → 0
View file @
5edd0c23
package
isima.F2
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest.WebEnvironment
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.boot.web.server.LocalServerPort
;
@SpringBootTest
(
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
class
RamassagePoubleDepotApplicationTests
{
@LocalServerPort
private
int
port
;
@Autowired
private
TestRestTemplate
restTemplate
;
@Test
public
void
testRunServerRamassageAppTest
()
throws
Exception
{
assertThat
(
this
.
restTemplate
.
getForObject
(
"http://localhost:"
+
port
+
"/"
,
String
.
class
)).
isNotEmpty
();
}
}
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