-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: manage the repository with travis CI
- Loading branch information
Showing
7 changed files
with
174 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
env: | ||
- MODULE=core | ||
- MODULE=core/java-lib | ||
- MODULE=core/broadcaster | ||
before_install: | ||
- cp config/settings.xml ~/.m2/settings.xml | ||
script: cd $MODULE && mvn clean deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<servers> | ||
<server> | ||
<id>github</id> | ||
<username>${env.CI_DEPLOY_USERNAME}</username> | ||
<password>${env.CI_DEPLOY_PASSWORD}</password> | ||
</server> | ||
</servers> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
core/broadcaster/src/test/java/io/reactivity/core/broadcaster/TestConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* The MIT License (MIT) Copyright (c) 2016 The reactivity authors | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | ||
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the | ||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | ||
* permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the | ||
* Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | ||
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
|
||
|
||
package io.reactivity.core.broadcaster; | ||
|
||
import io.reactivity.core.broadcaster.config.CouchbaseConfig; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* <p> | ||
* This configuration class detects environment variable. | ||
* This kind of support is provided by spring boot but the {@code SpringBootApplication} annotation is currently not used. | ||
* </p> | ||
* | ||
* @author Guillaume DROUET | ||
* @since 0.1.0 | ||
*/ | ||
@Configuration | ||
public class TestConfig extends CouchbaseConfig { | ||
|
||
/** | ||
* <p> | ||
* Builds a the default instance. | ||
* </p> | ||
*/ | ||
public TestConfig() { | ||
final String nodes = System.getenv("REACTIVITY_COUCHBASE_NODES"); | ||
|
||
if (nodes != null) { | ||
setNodes(nodes.split(",")); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>io.reactivity.core</groupId> | ||
<artifactId>reactivity-parent</artifactId> | ||
<version>0.1.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<java.version>1.8</java.version> | ||
|
||
<!-- github server corresponds to entry in settings.xml --> | ||
<github.global.server>github</github.global.server> | ||
<site-maven-plugin.version>0.12</site-maven-plugin.version> | ||
</properties> | ||
|
||
<distributionManagement> | ||
<!-- This is where artifacts will be deployed and selected for upload to Github --> | ||
<repository> | ||
<id>internal.repo</id> | ||
<name>GitHub Repository</name> | ||
<url>file://${project.build.directory}/mvn-repo</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>${java.version}</source> | ||
<target>${java.version}</target> | ||
</configuration> | ||
</plugin> | ||
|
||
<!-- This plugin selects artifacts deployed locally and upload them to Github --> | ||
<plugin> | ||
<groupId>com.github.github</groupId> | ||
<artifactId>site-maven-plugin</artifactId> | ||
<version>${site-maven-plugin.version}</version> | ||
<configuration> | ||
<!-- git commit message --> | ||
<message>deploy: maven artifact for ${project.name} version ${project.version}</message> | ||
|
||
<!-- What to include --> | ||
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory> | ||
<includes><include>**/*</include></includes> | ||
|
||
<!-- Github repository --> | ||
<repositoryName>maven-repository</repositoryName> | ||
<repositoryOwner>reactivity-io</repositoryOwner> | ||
<branch>refs/heads/mvn-repo</branch> | ||
<merge>true</merge> | ||
</configuration> | ||
<executions> | ||
<!-- run site-maven-plugin's 'site' target as part of the build's normal 'deploy' phase --> | ||
<execution> | ||
<goals> | ||
<goal>site</goal> | ||
</goals> | ||
<phase>deploy</phase> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |