forked from carlosmiranda/farm-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rultor.yml
48 lines (48 loc) · 1.86 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
docker:
image: yegor256/java8
assets:
settings.xml: zerocracy/home#assets/zerocracy/settings.xml
id_rsa: zerocracy/home#assets/heroku-key
id_rsa.pub: zerocracy/home#assets/heroku-key.pub
env:
MAVEN_OPTS: -Xmx1g
install: |-
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo gem install pdd
sudo gem install xcop
sudo gem install sass -v 3.4.25
java -version
deploy:
script: |
pdd --source=$(pwd) --verbose --file=/dev/null
mvn clean install -Prultor --settings ../settings.xml --quiet
mvn clean --quiet
release:
script: |
[[ "${tag}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1
mvn clean process-resources --quiet
mvn clean versions:set "-DnewVersion=${tag}" --quiet
git commit -am "${tag}"
cp ../settings.xml settings.xml
mvn clean package -Pqulice,codenarc,zc-farm --errors --batch-mode --quiet
git remote add heroku [email protected]:zerocrat.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 fetch
git add settings.xml
mvn initialize -Pshutdown --settings ../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 https://www.0crat.com > /dev/null
merge:
script: |-
pdd --source=$(pwd) --verbose --file=/dev/null
mvn help:system clean install -Pqulice,codenarc --settings ../settings.xml
mvn clean site -Psite --settings ../settings.xml --quiet
architect:
- g4s8
- yegor256