Created
July 3, 2018 11:36
-
-
Save gustavomcarmo/89d556cbc677e8bc0a4a20b82dfeb2a9 to your computer and use it in GitHub Desktop.
.travis.yml file explained in http://www.esign.com.br/2017/10/19/como-sempre-entregar-seu-projeto-open-source-com-qualidade
This file contains hidden or 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
language: java | |
sudo: required | |
install: true | |
services: | |
- docker | |
addons: | |
sonarcloud: | |
organization: "gustavomcarmo-github" | |
jdk: | |
- oraclejdk8 | |
script: | |
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar | |
- docker build --tag=esignbr/logistics . | |
cache: | |
directories: | |
- '$HOME/.m2/repository' | |
- '$HOME/.sonar/cache' | |
after_success: | |
- "curl -T logistics-ear/target/logistics-ear-1.0-SNAPSHOT.ear -u $FTP_USER:$FTP_PASSWORD ftp://esign.com.br/appservers/wildfly-10.0.0.Final/standalone/deployments/" | |
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" | |
- docker push esignbr/logistics |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment