-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (35 loc) · 896 Bytes
/
.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
language: java
jdk:
- openjdk10
cache:
directories:
- "$HOME/.m2"
sudo: enabled
install:
- echo "Nothing to install, but avoid default 'mvn install' command"
git:
depth: false
script:
- mvn clean test package
notifications:
email:
recipients:
- himran@twg.io
on_success: always
on_failure: always
before_install:
- openssl aes-256-cbc -K $encrypted_8d96415360c6_key -iv $encrypted_8d96415360c6_iv
-in deploy_rsa.enc -out deploy_rsa -d
addons:
ssh_known_hosts: ec2-user@ec2-18-220-234-24.us-east-2.compute.amazonaws.com
before_deploy:
- openssl aes-256-cbc -K $encrypted_8d96415360c6_key -iv $encrypted_8d96415360c6_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
deploy:
- provider: script
skip_cleanup: true
script: bash scripts/deploy.sh
on:
branch: master