Skip to content

Commit

Permalink
Add maven profiles. (sofastack#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjboy authored Apr 12, 2018
1 parent 26b9026 commit 83a6e8d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ before_install:
&& /bin/bash zookeeper-3.4.11/bin/zkServer.sh start

install:
- mvn clean install -DskipTests=true -B -U -e
- mvn clean install -Pci-install -B -U -e
- sh ./tools/check_format.sh

script:
- mvn clean package -Plocal -Dmaven.javadoc.skip=true
- mvn clean package -Pci-test

after_success:
- bash <(curl -s https://codecov.io/bash)
4 changes: 0 additions & 4 deletions extension-impl/registry-local/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

<artifactId>sofa-rpc-registry-local</artifactId>

<properties>
<dependency.test.skip>true</dependency.test.skip>
</properties>

<dependencies>
<dependency>
<groupId>com.alipay.sofa</groupId>
Expand Down
12 changes: 0 additions & 12 deletions extension-impl/registry-zk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

<artifactId>sofa-rpc-registry-zk</artifactId>

<properties>
<dependency.test.skip>true</dependency.test.skip>
</properties>

<dependencies>
<dependency>
<groupId>com.alipay.sofa</groupId>
Expand Down Expand Up @@ -102,12 +98,4 @@
</plugins>
</build>

<profiles>
<profile>
<id>local</id>
<properties>
<dependency.test.skip>false</dependency.test.skip>
</properties>
</profile>
</profiles>
</project>
35 changes: 35 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
<!-- Build args -->
<module.install.skip>true</module.install.skip>
<module.deploy.skip>true</module.deploy.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
<module.jacoco.skip>true</module.jacoco.skip>
<dependency.test.skip>true</dependency.test.skip>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -124,6 +127,7 @@
<breakiterator>true</breakiterator>
<author>false</author>
<keywords>true</keywords>
<skip>${maven.javadoc.skip}</skip>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -220,6 +224,9 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<skip>${module.jacoco.skip}</skip>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
Expand Down Expand Up @@ -250,5 +257,33 @@
<maven.javadoc.quiet>true</maven.javadoc.quiet>
</properties>
</profile>
<profile>
<id>ci-install</id>
<properties>
<skipTests>true</skipTests>
<maven.javadoc.skip>false</maven.javadoc.skip>
<module.jacoco.skip>true</module.jacoco.skip>
</properties>
</profile>
<profile>
<id>ci-test</id>
<properties>
<dependency.test.skip>false</dependency.test.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
<module.jacoco.skip>false</module.jacoco.skip>
</properties>
</profile>
<profile>
<id>it-test</id>
<properties>
<dependency.test.skip>false</dependency.test.skip>
</properties>
</profile>
<profile>
<id>release</id>
<properties>
<maven.javadoc.skip>false</maven.javadoc.skip>
</properties>
</profile>
</profiles>
</project>
12 changes: 0 additions & 12 deletions test/test-integration-3rd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

<artifactId>sofa-rpc-test-integration-3rd</artifactId>

<properties>
<dependency.test.skip>true</dependency.test.skip>
</properties>

<dependencies>
<dependency>
<groupId>com.alipay.sofa</groupId>
Expand Down Expand Up @@ -137,12 +133,4 @@
</plugins>
</build>

<profiles>
<profile>
<id>local</id>
<properties>
<dependency.test.skip>false</dependency.test.skip>
</properties>
</profile>
</profiles>
</project>

0 comments on commit 83a6e8d

Please sign in to comment.