blob: 04470f87e57f3a1234183fe32040b60f4df4337a (
plain)
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
|
machine:
environment:
CMAKE_FILE: ../Toolchain/arm-eabi.cmake
dependencies:
cache_directories:
- ~/.android
- ~/android
- "~/assets/"
- ~/tomtom_assets
pre:
- "[ -d ~/assets ] || mkdir ~/assets"
- "[ -d ~/android ] || mkdir ~/android"
- sudo apt-get update
- bash ci/update_version.sh prepare
# Android build
- sudo apt-get install gettext
- sudo apt-get install libsaxonb-java
# for aapt
- sudo apt-get install lib32stdc++6
- sudo apt-get install lib32z1
# For python testing with junit reporting
- sudo apt-get install python-gobject libdbus-glib-1-dev python-dev
- pip install junit-xml dbus-python
- ln -s /usr/lib/python2.7/dist-packages/gobject /opt/circleci/python/2.7.11/lib/python2.7/site-packages/
- ln -s /usr/lib/python2.7/dist-packages/glib /opt/circleci/python/2.7.11/lib/python2.7/site-packages/
test:
override:
- bash ci/build.sh:
parallel: true
files:
- ci/build_*.sh
post:
- sed -i -e 's@name="Local GPS" profilename="car" enabled="yes" active="1"@name="Local GPS" profilename="car" enabled="no" active="0"@' navit.xml:
pwd: bin/navit/
- sed -i -e 's@name="Demo" profilename="car" enabled="no" active="yes"@name="Demo" profilename="car" enabled="yes" active="yes" follow="1" refresh="1"@' navit.xml:
pwd: bin/navit/
- sed -i -e 's@type="internal" enabled@type="internal" fullscreen="1" font_size="350" enabled@' navit.xml:
pwd: bin/navit/
- sed -i -e 's@libbinding_dbus.so" active="no"@libbinding_dbus.so" active="yes"@' navit.xml:
pwd: bin/navit/
- ./navit:
pwd: bin/navit/
background: true
- sleep 5
- import -window root $CIRCLE_ARTIFACTS/default.png
- python ci/dbus_tests.py $CIRCLE_TEST_REPORTS/
- dbus-send --print-reply --session --dest=org.navit_project.navit /org/navit_project/navit/default_navit org.navit_project.navit.navit.quit
deployment:
merge_into_master:
branch: trunk
owner: navit-gps
commands:
- bash ci/update_version.sh push
- git push origin $CIRCLE_SHA1:refs/heads/master
merge_translations:
branch: /i18n.*/
owner: navit-gps
commands:
- bash ci/submit_i18n_pr.sh
notify:
webhooks:
- url: http://62.210.125.30:8000/
|