forked from cqfn/jpeek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
43 lines (43 loc) · 1.58 KB
/
.rultor.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
docker:
image: yegor256/java8
assets:
settings.xml: zerocracy/home#assets/jpeek/settings.xml
pubring.gpg: zerocracy/home#assets/pubring.gpg
secring.gpg: zerocracy/home#assets/secring.gpg
id_rsa: zerocracy/home#assets/heroku-key
id_rsa.pub: zerocracy/home#assets/heroku-key.pub
env:
MAVEN_OPTS: -XX:MaxPermSize=256m -Xmx1g
JAVA_OPTS: -XX:MaxPermSize=256m -Xmx1g
install: |
sudo gem install --no-rdoc --no-ri pdd
sudo gem install --no-rdoc --no-ri xcop
architect:
- paulodamaso
- yegor256
merge:
script: |
mvn clean install -Pqulice --errors --settings ../settings.xml
mvn clean site -Psite --errors --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=/dev/null
deploy:
script: |
mvn clean deploy -Pqulice --errors --settings ../settings.xml
release:
script: |-
[[ "${tag}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
mvn clean deploy -Pjpeek -Psonar -Pqulice -Psonatype --errors --settings ../settings.xml
cp ../settings.xml settings.xml
mvn clean package -Pqulice -Pjpeek --errors --batch-mode
git remote add heroku git@heroku.com:jpeek.git
mkdir ~/.ssh
mv ../id_rsa ../id_rsa.pub ~/.ssh
chmod -R 600 ~/.ssh/*
echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config
git add settings.xml
git fetch
git commit -m 'settings.xml' && git push -f heroku $(git symbolic-ref --short HEAD):master && git reset HEAD~1
curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://www.jpeek.org > /dev/null