forked from yegor256/wring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
58 lines (58 loc) · 1.8 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
docker:
image: yegor256/java8
assets:
settings.xml: zerocracy/home#assets/wring/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
s3cfg: zerocracy/home#assets/s3cfg
env:
MAVEN_OPTS: -XX:MaxPermSize=256m -Xmx1g
install: |-
sudo gem install pdd
sudo gem install xcop
java -version
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
deploy:
script: |
mvn clean install -Prultor --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=wring.xml
s3cmd --no-progress put wring.xml --config=../s3cfg s3://pdd.teamed.io/wring.xml
release:
sensitive:
- settings.xml
script: |
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
cp ../settings.xml settings.xml
mvn clean package -Pqulice -Pwring --errors --batch-mode
git remote add heroku [email protected]:wring.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
rm -rf settings.xml
curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://www.wring.io
# mvn clean site-deploy -Psite --batch-mode --settings ../settings.xml
commanders:
- yegor256
merge:
script: |-
mvn help:system clean install -Pqulice --settings ../settings.xml
mvn clean site -Psite --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=/dev/null
commanders: []
architect:
- carlosmiranda
- yegor256
- karato