-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
49 lines (39 loc) · 1.1 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
45
46
47
48
sudo: required
language: java
jdk:
- oraclejdk8
- oraclejdk9
- openjdk8
before_install:
- sudo apt-get update -qq
install: true
script:
- mvn clean install -q -P linux
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- $HOME/.m2
jobs:
include:
- stage: deploy
if: branch = master
sudo: required
dist: trusty
python: "2.7"
services:
- docker
addons:
ssh_known_hosts:
- 131.234.29.7
before_install:
- openssl aes-256-cbc -K $encrypted_a09f00fca840_key -iv $encrypted_a09f00fca840_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
install:
- sudo pip install docker_py
- sudo pip install ansible===2.4.0.0
script:
- ansible-playbook -i playbook/inventory/dev.inventory playbook/build-images.yml --extra-vars "image_tag=$TRAVIS_COMMIT"
- ansible-playbook -i playbook/inventory/sask_dev.inventory playbook/deploy_microservices.yml --extra-vars "image_tag=$TRAVIS_COMMIT"