Skip to content
Open
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
104 changes: 104 additions & 0 deletions .travis.pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<!--
~ Copyright 2013, CloudBees Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--
<parent>
<groupId>com.cloudbees</groupId>
<artifactId>cloudbees-oss-parent</artifactId>
<version>7</version>
</parent>
-->
<groupId>net.keynexus</groupId>
<artifactId>syslog-java-client</artifactId>
<packaging>jar</packaging>
<version>1.0.9-CLOSEABLE</version>

<name>syslog-java-client</name>
<!-- <description>Syslog Java Client</description> -->
<url>https://github.com/CloudBees-community/syslog-java-client</url>
<inceptionYear>2014</inceptionYear>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Cyrille Le Clerc</name>
<email>[email protected]</email>
</developer>
</developers>

<prerequisites>
<maven>3.2.1</maven>
</prerequisites>

<scm>
<connection>scm:git:git://github.com/CloudBees-community/syslog-java-client.git</connection>
<developerConnection>scm:git:[email protected]:CloudBees-community/syslog-java-client.git</developerConnection>
<url>https://github.com/CloudBees-community/syslog-java-client</url>
<tag>HEAD</tag>
</scm>
<dependencies>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.0</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>central</id>
<name>keynexus-releases</name>
<url>https://keynexus.jfrog.io/keynexus/libs-release-local</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>keynexus-snapshots</name>
<url>https://keynexus.jfrog.io/keynexus/libs-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
</project>
58 changes: 58 additions & 0 deletions .travis.settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>${env.ARTIFACTORY_ID}</username>
<password>${env.ARTIFACTORY_PASS}</password>
<id>central</id>
</server>
<server>
<username>${env.ARTIFACTORY_ID}</username>
<password>${env.ARTIFACTORY_PASS}</password>
<id>snapshots</id>
</server>
</servers>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>https://keynexus.jfrog.io/keynexus/libs-release</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>https://keynexus.jfrog.io/keynexus/libs-snapshot</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>https://keynexus.jfrog.io/keynexus/libs-release</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>https://keynexus.jfrog.io/keynexus/libs-snapshot</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
39 changes: 39 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
language: java
sudo: false

before_script:
- cp $TRAVIS_BUILD_DIR/.travis.settings.xml ~/.m2/settings.xml
- cp $TRAVIS_BUILD_DIR/.travis.pom.xml $TRAVIS_BUILD_DIR/pom.xml

script:
- mvn test
- mvn package -DskipTests=true

after_success:
- mvn deploy

# Set up notification options
notifications:
email:
recipients:
- [email protected]

# change is when the repo status goes from pass to fail or vice versa
on_success: change
on_failure: always

# declare your environment variables
env:
# global will stay the same across all matrix possibilities (will not create additional combinations to run)
global:
- KN_THEME=default
- KN_ENVIRONMENT=test
- CC_TEST_REPORTER_ID=45c807ce000072ac08ab5da26a869f6d79f31f640d437ff7850707c76e29c771
- ARTIFACTORY_ID=devops
- ARTIFACTORY_PASS=AP45L7y7Hrm69HLCrkTEbargquYT7i3cDKCUXv

# configure which branches to run
branches:
except:
- /^wip.*$/
- /^test.*/