-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
25 lines (25 loc) · 905 Bytes
/
.travis.yml
File metadata and controls
25 lines (25 loc) · 905 Bytes
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
language: java
sudo: false
env:
- CODECOV_TOKEN="b84087bc-4a81-4799-8257-f4858cf68aff"
branches:
only:
- master
- develop
addons:
ssh_known_hosts: 176.223.141.228
before_install:
- openssl aes-256-cbc -K $encrypted_9ae803e79d3a_key -iv $encrypted_9ae803e79d3a_iv
-in deploy_key.enc -out ./deploy_key -d
script: mvn clean package -DskipTests
after_success:
- bash <(curl -s https://codecov.io/bash)
- eval "$(ssh-agent -s)"
- chmod 600 ./deploy_key
- echo -e "Host 176.223.141.228\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add ./deploy_key
- ssh -i ./deploy_key root@176.223.141.228 pwd
- scp -i ./deploy_key -v target/oneheed-0.0.1-SNAPSHOT.jar root@176.223.141.228:/opt/oneheed/backend
- ssh -o StrictHostKeyChecking=no -i ./deploy_key root@176.223.141.228 "cd /opt/oneheed/backend; screen -XS oneheed kill; screen -dmS oneheed java -jar oneheed-0.0.1-SNAPSHOT.jar"
git:
depth: 1