GH-1043: Add codecov support
* Add codecov support Resolves #1043 * Remove unwanted service configs from travis - Spring Cloud Stream doesn't use Redis/Kafka services as these were originally added to support their binder support in the same repo
This commit is contained in:
committed by
Artem Bilan
parent
007594cafd
commit
33e9f6fb11
13
.travis.yml
13
.travis.yml
@@ -5,16 +5,6 @@ cache:
|
||||
language: java
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
services:
|
||||
- redis-server
|
||||
env:
|
||||
- REDIS_TIMEOUT_MULTIPLIER=3 KAFKA_TIMEOUT_MULTIPLIER=30 SCS_KAFKA_TEST_EMBEDDED=false
|
||||
before_install:
|
||||
- wget http://www.us.apache.org/dist/kafka/0.8.2.1/kafka_2.10-0.8.2.1.tgz -O kafka.tgz
|
||||
- mkdir -p kafka && tar xzf kafka.tgz -C kafka --strip-components 1
|
||||
- nohup bash -c "cd kafka && bin/zookeeper-server-start.sh config/zookeeper.properties &"
|
||||
- nohup bash -c "cd kafka && bin/kafka-server-start.sh config/server.properties &"
|
||||
- sleep 5
|
||||
install: true
|
||||
# The environment variable ${TRAVIS_PULL_REQUEST} is set to "false" when the build
|
||||
# is for a normal branch commit. When the build is for a pull request, it will
|
||||
@@ -22,4 +12,5 @@ install: true
|
||||
script:
|
||||
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || ./mvnw package -Pspring,full -U -Dmaven.test.redirectTestOutputToFile=false'
|
||||
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] || ./mvnw package -Pspring -U -Dmaven.test.redirectTestOutputToFile=false'
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
33
pom.xml
33
pom.xml
@@ -242,5 +242,38 @@
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>coverage</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>env.TRAVIS</name>
|
||||
<value>true</value>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>0.7.9</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>agent</id>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>report</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user