-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (36 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: java
sudo: required
install: true
addons:
sonarcloud:
organization: "vvasiloud-github"
token:
secure: "F2Y7HJlHlxZqDeKlug1eeUA52piBPndRj/XdGoxVGHBiPzmZz/abiXcc/0OmI3zX/dvddkKs0TCucWE3AweIfzT99hzy+MPD7wtWZlQFjjKoNxHT9BgKoH1q3e4LryRjQ/4UUC2tDWf+zkGvyr/AtnGxA9q+3RMZcxZQyha8qE6w5hASPEwKmRX4c6wK0IIi+uLeUCjARAX1Onr1ByLnxZcOy6NY02JoB8mq5Vx3vEa9ihly9tyemVDj/Al5PkwmW1W4DZOirSSoDNSoXtjEZV3b286hGt/lkQ6ieKEOeV0XeZMoNZ4ZGBKVuSLb09WZzDZcM0zWQPblZA7PQ8Fnf8HRQTrUTsjvBC3IVDoxfhQwkLBPCY/xNm6bWoNjRNml8KPqaWV7euXmUwGUYRAM/d/N6BQBwnL/281pt6r/yzDGM4g8k+IyfnyI3IUayNFrx3NfyrkH89eKTVrINQXFaaKU2vwr+zibWILHT1GEbBOillcyAPQzJSBhAPtADOBVjIPEQ0GLvi1K4jfIlxw27UtmmLvfpjDtF818QTN0afCfeQi0WApzP4M9DnEstaRT5j09urudS8BAZQSdPGNxjEenp6mDwiJKxOUxXiHKCvE9qSSY32AjZM0kiHtIkknNHWmQwa8eTrzPOxQig/Ij+/iCQbK+JGM95tkulKNm8oM="
jdk:
- oraclejdk8
python:
- '2.7'
services:
- mongodb
- docker
- redis-server
- rabbitmq
before_install:
- sudo apt-get update -qq
- sudo apt-get install software-properties-common
- sudo apt-add-repository ppa:ansible/ansible -y
- sudo apt-get update -qq
install:
- sudo apt-get install ansible
after_success:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
- bash <(curl -s https://codecov.io/bash) -t 6f6008b6-9461-4949-b7fe-bfc92156919d
before_deploy:
- cd $TRAVIS_BUILD_DIR && chmod +x scripts/docker.build.sh && scripts/docker.build.sh
deploy:
provider: script
script: git clone https://github.com/Vento/deployment-automation.git && cd deployment-automation && echo $VAULT_PASS >> vault_pass.txt && ANSIBLE_HOST_KEY_CHECKING=false ansible-playbook -i inventories/pro deploy.yml --vault-password-file ./vault_pass.txt
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'