-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
38 lines (33 loc) · 1.5 KB
/
circle.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
machine:
timezone:
Europe/Berlin
environment:
_ZTR_ZANAVI: /home/ubuntu/zanavi_tr_zanavi
_ZTR_NAVITORIG: /home/ubuntu/zanavi_tr_navitorig
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install gettext
- sudo apt-get install qrencode
- sudo apt-get install bzr
- mkdir -p "$_ZTR_ZANAVI"
- mkdir -p "$_ZTR_NAVITORIG"
compile:
override:
- cd "$_ZTR_ZANAVI" && bzr branch lp:zanavi ; cd zanavi/ ; for i in $(ls -1 *.po);do j=$(basename -s \.po $i); msgfmt ${j}.po -o ${j}.mo ;done
- cd "$_ZTR_NAVITORIG" && bzr branch lp:~zoff/zanavi/navit_orig ; cd navit_orig/ ; for i in $(ls -1 *.po);do j=$(basename -s \.po $i); msgfmt ${j}.po -o ${j}.mo ;done
test:
override:
- cd "$_ZTR_ZANAVI" ; cd zanavi/ ; ls -al
- cd "$_ZTR_ZANAVI" ; cd zanavi/ ; ls -1 *.po | wc -l
- cd "$_ZTR_ZANAVI" ; cd zanavi/ ; ls -1 *.mo | wc -l
- cd "$_ZTR_ZANAVI" ; zip -r $CIRCLE_ARTIFACTS/zanavi.translations.zip zanavi
- cd "$_ZTR_NAVITORIG" ; cd navit_orig/ ; ls -al
- cd "$_ZTR_NAVITORIG" ; cd navit_orig/ ; ls -1 *.po | wc -l
- cd "$_ZTR_NAVITORIG" ; cd navit_orig/ ; ls -1 *.mo | wc -l
- cd "$_ZTR_NAVITORIG" ; zip -r $CIRCLE_ARTIFACTS/navit_orig.translations.zip navit_orig
# ------ cleanup -------------
- mkdir $CIRCLE_ARTIFACTS/job_logs
- mv -v $CIRCLE_ARTIFACTS/stderr_circle_*.txt $CIRCLE_ARTIFACTS/job_logs/ ; exit 0
- mv -v $CIRCLE_ARTIFACTS/stdout_circle_*.txt $CIRCLE_ARTIFACTS/job_logs/ ; exit 0
# ------ cleanup -------------