forked from yegor256/netbout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
78 lines (78 loc) · 2.76 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
architect:
- dmzaytsev
- yegor256
- karato
assets:
settings.xml: yegor256/home#assets/netbout/settings.xml
settings-snapshot.xml: yegor256/home#assets/netbout/settings-snapshot.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 --no-ri --no-rdoc pdd
sudo gem install --no-ri --no-rdoc est
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
deploy:
script: |
mvn clean deploy -Pqulice --errors --settings ../settings.xml
git remote add heroku [email protected]:netbout-snapshot.git
cp ../settings-snapshot.xml settings.xml
git add settings.xml
git commit -m 'settings.xml'
git push -f heroku $(git symbolic-ref --short HEAD):master
git reset HEAD~1
mvn clean
pdd --source=$(pwd) --verbose --file=netbout.xml
s3cmd --no-progress put netbout.xml --config=../s3cfg s3://pdd.teamed.io/netbout.xml
est --dir=./est --verbose --file=netbout.xml --format=xml
s3cmd --no-progress put netbout.xml --config=../s3cfg s3://est.teamed.io/netbout.xml
merge:
script: |
mvn clean install -Pqulice --errors --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=/dev/null
est --dir=est --file=/dev/null
commanders:
- caarlos0
- carlosmiranda
- darkled
- dmzaytsev
- ggajos
- krzyk
- longtimeago
- mkordas
- pinaf
release:
script: |-
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
mvn clean deploy -Pqulice -Psonatype -Pnetbout --errors --batch-mode --settings ../settings.xml
git remote add heroku [email protected]:netbout.git
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'
cp ../settings.xml settings.xml
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:
- dmzaytsev
- yegor256