-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy path.rultor.yml
58 lines (58 loc) · 2.17 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/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 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
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:
sensitive:
- settings.xml
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 --settings ../settings.xml
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
mvn liquibase:update -Pliquibase --errors --settings settings.xml
git commit -m 'settings.xml'; trap "git reset HEAD~1" EXIT
git push -f heroku $(git symbolic-ref --short HEAD):master
rm -rf settings.xml
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