forked from OnapleRPG/Itemizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·44 lines (37 loc) · 922 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
40
41
42
43
44
language: java
jdk:
- oraclejdk8
services:
- docker
before_install:
- gradle wrapper
- chmod +x scripts/run-xvfb
- scripts/run-xvfb
install: true
addons:
sonarcloud:
organization: ylinor-github
ssh_known_hosts: onaple.fr
script:
- ./gradlew build --info
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then bash ./gradlew sonarqube --info; fi'
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_deploy:
- openssl aes-256-cbc -K $encrypted_0d7303d7684b_key -iv $encrypted_0d7303d7684b_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:
tags: true
all_branches: false