Skip to content

Commit 75e9692

Browse files
Merge pull request #181 from Spring-Framework-Java-Apps/master
deployment
2 parents be10e6b + 9e245d9 commit 75e9692

File tree

6 files changed

+264
-22
lines changed

6 files changed

+264
-22
lines changed

etc/TODO.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,5 @@ Fixed #122, Fixed #123, Fixed #127, Fixed #130, Fixed #152, Fixed #153, Fixed #1
9090

9191
Fixed #129
9292
Fixed #126
93+
94+
https://developer.okta.com/blog/2019/03/28/test-java-spring-boot-junit5

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@
379379
<artifactId>spring-boot-starter-test</artifactId>
380380
<scope>test</scope>
381381
<exclusions>
382+
<exclusion>
383+
<groupId>junit</groupId>
384+
<artifactId>junit</artifactId>
385+
</exclusion>
382386
<exclusion>
383387
<groupId>org.junit.vintage</groupId>
384388
<artifactId>junit-vintage-engine</artifactId>
@@ -861,6 +865,17 @@
861865
</systemPropertyVariables>
862866
</configuration>
863867
</plugin>
868+
<plugin>
869+
<groupId>org.apache.maven.plugins</groupId>
870+
<artifactId>maven-failsafe-plugin</artifactId>
871+
<configuration>
872+
<skipTests>${skipTests}</skipTests>
873+
<systemPropertyVariables>
874+
<spring.profiles.active>default</spring.profiles.active>
875+
<skipIntegrationTests>${skipTests}</skipIntegrationTests>
876+
</systemPropertyVariables>
877+
</configuration>
878+
</plugin>
864879
</plugins>
865880
</build>
866881
</profile>

run.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function runDev() {
77
}
88

99
function runTest() {
10-
./mvnw -B -DskipTests=false clean dependency:list install --file pom.xml
10+
./mvnw -B -DskipTests=false clean dependency:list install --file pom.xml
1111
}
1212

1313
function runGithubTestBuild() {
@@ -19,10 +19,14 @@ function setupHeroku() {
1919
heroku ps -a simpleworklist
2020
}
2121

22-
function buildLikeHeroku() {
22+
function buildLikeHerokuWithSite() {
2323
./mvnw -DskipTests clean dependency:list install site site:deploy
2424
}
2525

26+
function buildLikeHeroku() {
27+
./mvnw -DskipTests clean dependency:list install
28+
}
29+
2630
function runHerokuLocal() {
2731
buildLikeHeroku
2832
heroku ps -a simpleworklist
@@ -33,10 +37,10 @@ function runHerokuLocal() {
3337
function main() {
3438
#runGithubTestBuild
3539
#setupHeroku
36-
buildLikeHeroku
40+
#buildLikeHeroku
3741
#runHerokuLocal
3842
#runDev
39-
#runTest
43+
runTest
4044
}
4145

4246
main

0 commit comments

Comments
 (0)