-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 3.59 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
language: java
jdk: openjdk11
before_install:
- openssl aes-256-cbc -K $encrypted_f501e79d4842_key -iv $encrypted_f501e79d4842_iv
-in nmoreaud_rsa.enc -out nmoreaud_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 nmoreaud_rsa
- ssh-add nmoreaud_rsa
- echo -e "Host ${DEPLOY_HOST}\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
deploy:
- provider: script
skip-cleanup: true
script: rsync -r --quiet --delete-after ${TRAVIS_BUILD_DIR}/target/cicd-example-*.jar
${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_DIRECTORY}
on:
branch: master
- provider: script
skip-cleanup: true
script: sh ${TRAVIS_BUILD_DIR}/remote_run.sh
on:
branch: master
addons:
sonarcloud:
organization: nmoreaud
token:
secure: icVWIxR87SfgBwPi31vT8//pdL6fnFJdlJRkPkFqxhcgyROR7uN9O+veBaWvxUOOAhTL3jO89jauvLCoHivH4TwlNT+28SrD2orAaagA8er8+AZ5cNM/FRuhm+xYl3YFylCKMs+ojq+gv7AdTGQpKyMt/PXirtd6XU+EX5h9xrGv3WVpXXfqMJqrEM6PVxUOY9ZDZF57hfDibk6S8lxEd5vL4Q0DMLjllyXSHCCUngLI8svrGz/EJnutQszMOglIpkTEF4XBAjym/zDucYTWMUKfJJ2LiZfXf5wgz2k/E6JsZKdiYzCUWUwVoWv1QWiuyyGJ+giPn8laT9z/wSu4HEcChqAFSa4tR4O4hGroxoUqe1sotObYJKKTDRVDlgBnlXh0qPOgVgQ4nA+xtWJzub62k5Z6pwJTkFauKtVK/RCXXzvnWEPSHxLhcbTRSr4sA3uEP0yAAwUWfywOD+nSSzvuK2IeIy7Yte3+wkucabjTIMHYE4m5VEmXeVjxWZ55RvvJ3grjyDh+s5+/UARx7bY6/9OHKFG+B/dU8lhz9O9XCQtSXYw7ap1cA6w/0Ne4yV3DDihCstW0RV2Ps7US13wa+b/YStsHHJeA0fpjbGp7uR4ztqbk1hBbK7Joh4FC19Ckf9ysWHShI3shOzIljpVDXIvx5t74olrpwiRfi74=
script:
- "./mvnw clean install sonar:sonar -Dsonar.projectKey=nmoreaud_OpenwisTraining"
notifications:
email:
on_success: always
on_failure: always
env:
global:
- secure: ZTnmcG45SCisJlLq4yP4IOUch4C/Q+gAzUmXajGILVCp/1hm6KsUvIMVE08B9/rzhxnl0p/FsDHh9rRmP/eqU1sVJiNd/Jh7oI596Qz2ip8S5WIfQDm8vGRNKPmrBfXq0JBcTiQBFxASU6r7mxgw84oDaOvCD3gn1WhVz6dy1RvbqVOyHk/KjAgPUKpXF/9j8BEKq22JXKPxvT0Ld9NhSKfeHSEP5zfh/bAMnUfVnujf5aE/gTAoHW+Ow9XiR6gLsQ6O4b0p6kyMwepd9dkQzrrn28/+iLzp2fqTKV7Hwdf6MQfCxzMcmU0cIir3kgzja4hVamcD8qX0ID5MLdLb1Z2+rFwExC/K/htvlPKpMCZCeT6fPKq+0Rn0UR3CwXxyTg/wMOGnlA4DShnASXGyR12rrhyMd6Ymtvod7SmLAP86RAcewww8i9V/E647BUGomrhDk2P8xMLUzBCKeYNKV58/H1PJJ3eIorQ7sojI5vOnqc2Eqz7zHZicQNh0Gx3KkqzfxlKR1qumgPon2BZyy57xvJ23yaiQEfpbxaP2Qhax6M08bPS5UtJOvLyuITMxjYFiSz0AeMY3xrdouOf4zD7FA2JBPdornF86YY1hBtVt5R3uGQOoYXeT2pkBiboXN3aKXmHFNk03TScLOJkTXTVCJjsQoHRHmuhSR6hvZPY=
- secure: tdPLId6Vvu5YxdYrhW3F05yMXq2plfkF43EdrRDqlxP/DoVry2rKWYrlla9zDva9jvapR3j8LbCYvDniGiRh6EOmlS31pelnLzehzAH7FFvPXiO5yAhPmLlei8xAgNdfoBcBal/t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