forked from yegor256/rultor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
60 lines (54 loc) · 2.02 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
assets:
settings.xml: "yegor256/home#assets/rultor/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"
architect:
- yegor256
- alex-palevsky
install: |
sudo apt-get install bsdmainutils
sudo gem install pdd
cd src/bundle
sudo bundle install
cd ../..
deploy:
script: |
mvn clean package -Prultor --errors --settings ../settings.xml --batch-mode
mvn clean
pdd --source=$(pwd) --verbose --file=rultor.xml
s3cmd --no-progress put rultor.xml --config=../s3cfg s3://pdd.teamed.io/rultor.xml
release:
script: |
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
cp ../settings.xml settings.xml
mvn clean package -Pqulice -Prultor --errors --batch-mode
git remote add heroku git@heroku.com:rultor.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" src/main/resources/META-INF/MANIFEST.MF
sed -i "s/BUILD/${build}/g" src/main/resources/log4j.properties
git add src/main/resources/META-INF/MANIFEST.MF
git add src/main/resources/log4j.properties
git commit -m 'build number set'
git add settings.xml
git commit -m 'settings.xml'
git fetch --unshallow
git push -f heroku $(git symbolic-ref --short HEAD):master
git reset HEAD~1
curl -f --connect-timeout 30 --retry 8 --retry-delay 60 http://www.rultor.com
mvn clean site-deploy -Psite --errors --settings ../settings.xml --batch-mode
merge:
script: |
mvn help:system clean package -Pqulice -Prultor --errors --settings ../settings.xml
mvn clean site -Psite --errors --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=/dev/null