forked from yegor256/takes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
67 lines (67 loc) · 2.71 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
assets:
settings.xml: yegor256/home#assets/takes/settings.xml
pubring.gpg: yegor256/home#assets/pubring.gpg
secring.gpg: yegor256/home#assets/secring.gpg
s3cfg: yegor256/home#assets/s3cfg
decrypt:
curl-appveyor.cfg: repo/curl-appveyor.cfg.asc
env:
MAVEN_OPTS: -XX:MaxPermSize=256m -Xmx1g
JAVA_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-rdoc --no-ri pdd
architect:
- yegor256
- davvd
merge:
script: |
version=$(curl -K ../curl-appveyor.cfg --data "{accountName: 'yegor256', projectSlug: 'takes', pullRequestId: '${pull_id}'}" https://ci.appveyor.com/api/builds | jq -r '.version')
while true
do status=$(curl -K ../curl-appveyor.cfg https://ci.appveyor.com/api/projects/yegor256/takes/build/${version} | jq -r '.build.status')
if [ "${status}" == "null" ]; then exit 1; fi
if [ "${status}" == "success" ]; then break; fi
if [ "${status}" == "failed" ]; then echo "see https://ci.appveyor.com/project/yegor256/takes/build/${version}"; exit 1; fi
echo "waiting for AppVeyor build ${version}: ${status}"
sleep 5s
done
mvn clean install -Ptakes -Pqulice --errors --settings ../settings.xml
mvn clean site -Psite --errors --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=/dev/null
commanders:
- caarlos0
- carlosmiranda
- darkled
- dmzaytsev
- ggajos
- krzyk
- longtimeago
- pinaf
deploy:
script: |
version=$(curl -K ../curl-appveyor.cfg --data "{accountName: 'yegor256', projectSlug: 'takes', branch: 'master'}" https://ci.appveyor.com/api/builds | jq -r '.version')
while true
do status=$(curl -K ../curl-appveyor.cfg https://ci.appveyor.com/api/projects/yegor256/takes/build/${version} | jq -r '.build.status')
if [ "${status}" == "null" ]; then exit 1; fi
if [ "${status}" == "success" ]; then break; fi
if [ "${status}" == "failed" ]; then echo "see https://ci.appveyor.com/project/yegor256/takes/build/${version}"; exit 1; fi
echo "waiting for AppVeyor build ${version}: ${status}"
sleep 5s
done
mvn clean deploy -Pqulice --errors --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=takes.xml
s3cmd --no-progress put takes.xml --config=../s3cfg s3://pdd.teamed.io/takes.xml
release:
script: |-
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
mvn clean deploy -Ptakes -Psonatype --errors --settings ../settings.xml
mvn clean site-deploy -Pcoveralls -Ptakes -Psite --errors --settings ../settings.xml || echo 'site-deploy failed'
commanders:
- yegor256