forked from yegor256/netbout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
59 lines (59 loc) · 2.11 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
59
assets:
settings.xml: yegor256/home#assets/netbout/settings.xml
pubring.gpg: yegor256/home#assets/pubring.gpg
secring.gpg: yegor256/home#assets/secring.gpg
id_rsa: yegor256/home#assets/heroku-key
id_rsa.pub: yegor256/home#assets/heroku-key.pub
s3cfg: yegor256/home#assets/s3cfg
env:
MAVEN_OPTS: -XX:MaxPermSize=256m -Xmx1g
install: |
sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
sudo gem install pdd
deploy:
script: |
mvn clean deploy -Pqulice --errors --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=netbout.xml
s3cmd --no-progress put netbout.xml --config=../s3cfg s3://pdd.teamed.io/netbout.xml
commanders:
- yegor256
merge:
script: |
mvn clean install -Pqulice --errors --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=/dev/null
commanders:
- yegor256
release:
script: |-
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
cp ../settings.xml settings.xml
mvn clean deploy -Pqulice -Psonatype -Pnetbout --errors --batch-mode --settings ../settings.xml
git remote add heroku [email protected]:netbout.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
build=$(git rev-parse --short HEAD)
sed -i "s/BUILD/${build}/g" netbout-web/src/main/resources/META-INF/MANIFEST.MF
sed -i "s/BUILD/${build}/g" netbout-web/src/main/resources/log4j.properties
git add netbout-web/src/main/resources/META-INF/MANIFEST.MF
git add netbout-web/src/main/resources/log4j.properties
git commit -m 'build number set'
git add settings.xml
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.netbout.com
mvn clean site-deploy -Psite --errors --settings ../settings.xml --batch-mode
commanders:
- yegor256
architect:
- yegor256
- karato