-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 886 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
---
sudo: required
dist: trusty
group: deprecated-2017Q4
addons:
ssh_known_hosts: "51.254.121.242"
before_deploy:
- "openssl aes-256-cbc -K $encrypted_36d8d61cfa6b_key -iv $encrypted_36d8d61cfa6b_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d"
- "eval \"$(ssh-agent -s)\""
- "chmod 400 /tmp/deploy_rsa"
- "ssh-add /tmp/deploy_rsa"
- "scp $TRAVIS_BUILD_DIR/target/air-pollution-crawler-1.0-SNAPSHOT-shaded.jar [email protected]:build"
- "ssh [email protected] 'sudo systemctl stop air-pollution.service'"
before_script:
- "npm install -g bower"
deploy:
provider: script
script: "ssh [email protected] 'sudo systemctl start air-pollution.service'"
skip_cleanup: true
true:
branch: master
jdk:
- oraclejdk8
language: java
script:
- "pushd $TRAVIS_BUILD_DIR/src/main/resources/static && bower install && popd"
- "mvn clean install package"