-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from TransbankDevelopers/chore/configure-travis-ci
Configure travis ci
- Loading branch information
Showing
11 changed files
with
271 additions
and
5 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,39 @@ | ||
--- | ||
name: Reporte de Error | ||
about: Crea un reporte para ayudarnos a mejorar | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe el bug** | ||
|
||
Una descripción concisa sobre el bug. | ||
|
||
**Para reproducir** | ||
|
||
1. Configura '...' | ||
2. Crea un objeto '...' | ||
3. Ejecuta el método '...' | ||
4. Se ve el error en '...' | ||
|
||
**Comportamiento observado** | ||
|
||
Describe de forma concisa lo que observaste siguiendo los pasos para reproducir el error. | ||
|
||
**Comportamiento esperado** | ||
|
||
Una explicación concisa y clara de qué es lo que esperas que ocurra. | ||
|
||
**Capturas de pantalla** | ||
|
||
Si aplica, agrega aquí capturas de pantalla que ayuden a explicar tu problema. | ||
|
||
**Versiones (por favor agrega aquí la siguiente información):** | ||
- SDK: [e.g. 1.1.0] | ||
- JDK: [e.g. 8u211] | ||
|
||
**Contexto adicional** | ||
|
||
Agrega cualquier otro información sobre el problema aquí. |
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,23 @@ | ||
language: java | ||
dist: trusty | ||
jdk: oraclejdk8 | ||
sudo: required | ||
addons: | ||
sonarcloud: | ||
organization: "transbankdevelopers" | ||
token: | ||
secure:"Nui1spHqyeYsW7YfB3uhtYK6NQU4EzpaDqlLIzM3xlx+TvAXg+dCGDhE0LRyLtH+Vvbqw7plntWAhDquQIPwKM/0P1WrXLw9l+Wd6olD1FlpXFXnr3+JboAVatoDI8se1qziEKKYlvk6i5TYYn1ajbbl461gcDDLJfjniOCQnAFh1WwbgH0fBJkiYo9LRKflksn5JtevvtTCsHmqozJfM2fIWSWwR/h3HmIxaTUYBdiBPntH3qWHgK5q1W9uR/ZHZTbjFrhGDk3CeDAuX/dAQMvsEDfMh4DOCDb+QP1X3n07qJkY0gRMkKtfUORBygssE/BgDvaqSQkwztjy2j3JBYrgEZDZW60tx7Mr004GX5c3egd6fkH06/CX858adtWjckrvXbjuMPZVSRxVVKceZ3OAW0wUYU5e86xbjOczz6cWMpB/+wYP3nlxmi0rdqY5E0BMcG5NY3r8jdDaHzoazz29lC9lSINcGld72lC4UJK9AI7in7FfCZPXrL7Ci3cBahLwkk+wZ3axyUh7F+AoJF1poTp0iCoJNuXDXf6LSMTIW2AZLaq2kw0qnVDDKIiCUtt2EHLVMQCYKEVqXcIHfE4nWGd3Q40J6htBkIJIN4TYtLYuAxGgoFBMXFXCca+RYkdOZ3nhsdW1qpz021KnLITJotC11fMdvHbdgRUVcfs=" | ||
install: mvn --settings .travis/settings.xml clean compile | ||
before_install: | ||
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi | ||
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi | ||
script: | ||
- mvn --settings .travis/settings.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_LOGIN | ||
deploy: | ||
- | ||
provider: script | ||
script: bash .travis/deploy.sh | ||
skip_cleanup: true | ||
on: | ||
all_branches: true | ||
jdk: oraclejdk8 |
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,17 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -z "$TRAVIS_TAG" ] | ||
then | ||
echo "Tag found" | ||
if ( echo $TRAVIS_TAG | egrep -i '^v[0-9]+\.[0-9]+\.[0-9]+') | ||
then | ||
VERSION_NUMBER=${TRAVIS_TAG:1} | ||
echo "on a tag -> set pom.xml <version> to $VERSION_NUMBER" | ||
mvn --settings .travis/settings.xml org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$VERSION_NUMBER 1>/dev/null 2>/dev/null | ||
else | ||
echo "Tag does not start with v: ${TRAVIS_TAG} keep snapshot version in pom.xml" | ||
fi | ||
mvn clean deploy --settings .travis/settings.xml -B -U | ||
else | ||
echo "not on a tag no deploy trigered" | ||
fi |
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,25 @@ | ||
<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> | ||
<!-- Maven Central Deployment --> | ||
<id>ossrh</id> | ||
<username>${env.SONATYPE_USERNAME}</username> | ||
<password>${env.SONATYPE_PASSWORD}</password> | ||
</server> | ||
</servers> | ||
<profiles> | ||
<profile> | ||
<id>ossrh</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<properties> | ||
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable> | ||
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Changelog | ||
Todos los cambios notables a este proyecto serán documentados en este archivo. | ||
|
||
El formato está basado en [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
y este proyecto adhiere a [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.0.0] - 2020-17-03 | ||
### Added | ||
- Release inicial. |
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 |
---|---|---|
@@ -1,4 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2020 Transbank | ||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following | ||
conditions are met: | ||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following | ||
disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided with the distribution. | ||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products | ||
derived from this software without specific prior written permission. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | ||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. | ||
--> | ||
<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"> | ||
|
@@ -7,6 +25,66 @@ | |
<groupId>com.github.transbankdevelopers</groupId> | ||
<artifactId>transbank-sdk-pos-java</artifactId> | ||
<version>1.0.2-SNAPSHOT</version> | ||
<name>Transbank POS Java SDK</name> | ||
|
||
<inceptionYear>2020</inceptionYear> | ||
<description> | ||
Transbank SDK to connect to Verifone VX520 and VX520c POS | ||
</description> | ||
|
||
<url>http://www.transbankdevelopers.cl/</url> | ||
|
||
<issueManagement> | ||
<system>git</system> | ||
<url>https://github.com/TransbankDevelopers/transbank-pos-sdk-java/issues</url> | ||
</issueManagement> | ||
|
||
<scm> | ||
<connection>scm:git:https://github.com/TransbankDevelopers/transbank-pos-sdk-java.git</connection> | ||
<developerConnection>scm:git:https://github.com/TransbankDevelopers/transbank-pos-sdk-java.git</developerConnection> | ||
<url>https://github.com/TransbankDevelopers/transbank-pos-sdk-java.git</url> | ||
<tag>v1.0.2-SNAPSHOT</tag> | ||
</scm> | ||
|
||
<licenses> | ||
<license> | ||
<name>BSD-3-Clause</name> | ||
<url>https://opensource.org/licenses/BSD-3-Clause</url> | ||
</license> | ||
</licenses> | ||
|
||
<developers> | ||
<developer> | ||
<name>Juan Pablo Nuñez Rojas</name> | ||
<id>floydnunez</id> | ||
<email>[email protected]</email> | ||
<organization>Continuum SPA</organization> | ||
<timezone>-4</timezone> | ||
<roles> | ||
<role>Full-stack developer</role> | ||
</roles> | ||
</developer> | ||
<developer> | ||
<name>Alfredo Fiebig Cosmelli</name> | ||
<id>afiebig</id> | ||
<email>[email protected]</email> | ||
<organization>Continuum SPA</organization> | ||
<timezone>-4</timezone> | ||
<roles> | ||
<role>Full-stack developer</role> | ||
</roles> | ||
</developer> | ||
</developers> | ||
|
||
<packaging>jar</packaging> | ||
|
||
<properties> | ||
<maven.compiler.source>1.7</maven.compiler.source> | ||
<maven.compiler.target>1.7</maven.compiler.target> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
|
@@ -19,6 +97,7 @@ | |
<version>2.13.1</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
|
@@ -30,8 +109,87 @@ | |
<target>8</target> | ||
</configuration> | ||
</plugin> | ||
<!-- To release to Maven central --> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.6.8</version> | ||
<executions> | ||
<execution> | ||
<id>default-deploy</id> | ||
<phase>deploy</phase> | ||
<goals> | ||
<goal>deploy</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<serverId>ossrh</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
<!-- To generate javadoc --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>3.0.1</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.10.4</version> | ||
<configuration> | ||
<excludePackageNames>com.transbank.*</excludePackageNames> <!-- Legacy auto-generated sources --> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- To sign the artifacts --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>1.6</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
<configuration> | ||
<passphraseServerId>${gpg.keyname}</passphraseServerId> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrh</id> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
</project> |
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
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
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