Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (32 sloc) 1.13 KB
---
language: java
jdk:
- oraclejdk8
sudo: required
services:
- docker
addons:
apt:
packages:
- sshpass
sonarcloud:
organization: "gustavomcarmo-github"
install:
- gem install travis
script:
- mvn clean install sonar:sonar
- docker build --tag=esignbr/logistics .
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
after_success:
- cp .travis.settings.xml $HOME/.m2/settings.xml && mvn source:jar deploy -DskipTests=true
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker push esignbr/logistics
- sshpass -p $FTP_PASSWORD sftp -o StrictHostKeyChecking=no -o BatchMode=no -b sftp-commands $FTP_USER@esign.com.br
- curl -LO https://raw.github.com/stephanmg/travis-dependent-builds/master/trigger.sh
- chmod +x trigger.sh
- ./trigger.sh esign-consulting logistics-test-arquillian master $TRAVIS_GITHUB_TOKEN
- ./trigger.sh esign-consulting logistics-test-jmeter master $TRAVIS_GITHUB_TOKEN
- ./trigger.sh esign-consulting logistics-test-restassured master $TRAVIS_GITHUB_TOKEN
- ./trigger.sh esign-consulting logistics-test-selenium master $TRAVIS_GITHUB_TOKEN