Skip to content

Commit cedd083

Browse files
working on #228, working on #225, working on #42, working on #230
1 parent dd6d2d4 commit cedd083

File tree

5 files changed

+46
-11
lines changed

5 files changed

+46
-11
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sudo: false
2+
language: java
3+
jdk:
4+
- oraclejdk8
5+
script:
6+
- test/run-travis.sh

pom.xml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,6 @@
8888
<groupId>org.springframework.boot</groupId>
8989
<artifactId>spring-boot-starter-mobile</artifactId>
9090
</dependency>
91-
<!--
92-
<dependency>
93-
<groupId>org.springframework.boot</groupId>
94-
<artifactId>spring-boot-starter-validation</artifactId>
95-
</dependency>
96-
<dependency>
97-
<groupId>org.springframework.boot</groupId>
98-
<artifactId>spring-boot-starter-hateoas</artifactId>
99-
</dependency>
100-
-->
10191
<dependency>
10292
<groupId>org.springframework.boot</groupId>
10393
<artifactId>spring-boot-starter-logging</artifactId>
@@ -214,7 +204,7 @@
214204
<phase>package</phase>
215205
<goals>
216206
<!-- use copy-dependencies instead if you don't want to explode the sources -->
217-
<goal>unpack-dependencies</goal>
207+
<goal>copy-dependencies</goal>
218208
</goals>
219209
<configuration>
220210
<classifier>sources</classifier>
@@ -455,6 +445,26 @@
455445
</plugins>
456446
</build>
457447
</profile>
448+
449+
<profile>
450+
<id>travis</id>
451+
<build>
452+
<plugins>
453+
454+
<plugin>
455+
<groupId>org.apache.maven.plugins</groupId>
456+
<artifactId>maven-surefire-plugin</artifactId>
457+
<configuration>
458+
<systemPropertyVariables>
459+
<spring.profiles.active>travis</spring.profiles.active>
460+
</systemPropertyVariables>
461+
</configuration>
462+
</plugin>
463+
464+
</plugins>
465+
</build>
466+
</profile>
467+
458468
</profiles>
459469

460470

src/main/resources/application.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,5 +338,10 @@ spring:
338338
profiles: testing
339339
datasource:
340340
url: ${DATABASE_URL_TEST}
341+
---
342+
spring:
343+
profiles: travis
344+
datasource:
345+
url: ${DATABASE_URL_TEST}
341346

342347

test/run-local.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
cd $(dirname $0)
4+
5+
cd ..
6+
7+
./mvnw clean package install site site:deploy -Ptesting

test/run-travis.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
cd $(dirname $0)
4+
5+
cd ..
6+
7+
./mvnw clean package install site site:deploy -Ptravis

0 commit comments

Comments
 (0)