Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 23 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@ language: java
sudo: false
cache:
directories:
- "$HOME/.m2"
- "$HOME/.m2"
before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --batch
|| true
matrix:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --batch
|| true
jobs:
include:
- jdk: openjdk8
dist: xenial
- jdk: openjdk11
dist: xenial
- jdk: openjdk8
dist: xenial
before_script:
- mvn test -B
- jdk: openjdk11
dist: xenial
after_success:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.projectKey=twilio_twilio-java -Dmaven.javadoc.skip=true
services:
- docker
- docker
install:
- mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true
-B -V
- mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true
-B -V
script:
- echo "skipping tests"
deploy:
- provider: script
script: make docker-build && make docker-push
Expand All @@ -39,3 +45,8 @@ notifications:
on_failure: change
rooms:
secure: Yd0IZ2zGmRm64fVwbPebNJ+VJxT958iT3Zz7xP1CSkpR+w6rUulQhWvsn2ka4Kqge+TaXbhNu3I55wRdPCxLrEkTNgCdTkJ9y5HYMxPHpRcQ0XFxJHBmAW6y9foUdSbk2KdM1TKwNUnCp43QmSMWfaMjnvNbh2GzadS/JS1nmBI=
addons:
sonarcloud:
organization: "twilio"
token:
secure: EivSky9YwOBkCxRhxjocrCAL0d1V8ZunbiZFJK0MNtpwjajNJeZjMaVvE67Sf785NnaeiEStUKjH+usN+20kDrSq1JoF3Af17HQTtrY5yumRrdu9aJmCHnLW+qaqbtUJ6Z7XE5ULgKflo7l5ThbcVNu9gIBWFVKkLG4kUDv1/8Q=
43 changes: 40 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,49 @@
</plugins>
</build>
</profile>
<profile>
<id>coverage</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<!-- attached to Maven test phase -->
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties>
<jackson.version>2.12.1</jackson.version>
<jjwt.version>0.11.2</jjwt.version>
<skip.tests>false</skip.tests>
<dependency.skip>false</dependency.skip>
<sonar.coverage.exclusions>
**/test/**/*.*,**/rest/**/*.*
</sonar.coverage.exclusions>
<sonar.cpd.exclusions>
**/rest/**/*.*
</sonar.cpd.exclusions>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -374,7 +411,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<argLine>-javaagent:${settings.localRepository}/org/jmockit/jmockit/1.24/jmockit-1.24.jar</argLine>
<argLine>@{argLine} -javaagent:${settings.localRepository}/org/jmockit/jmockit/1.24/jmockit-1.24.jar</argLine>
<forkCount>8</forkCount>
<reuseForks>true</reuseForks>
</configuration>
Expand Down Expand Up @@ -402,7 +439,7 @@
</goals>
<configuration>
<rules>
<dependencyConvergence></dependencyConvergence>
<dependencyConvergence/>
</rules>
</configuration>
</execution>
Expand All @@ -415,4 +452,4 @@
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
</project>
</project>
11 changes: 11 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sonar.projectKey=twilio_twilio-java
sonar.projectName=twilio-java
sonar.organization=twilio

sonar.sources=src/main/java
# Exclude any auto-generated source code
sonar.exclusions=src/main/java/com/twilio/rest/**/*

sonar.tests=src/test/java/com/twilio
# Exclude any auto-generated integration tests
sonar.test.exclusions=src/test/java/com/twilio/rest/**/*.java