summaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorjandegr <jandegr@users.noreply.github.com>2018-05-02 21:22:17 +0200
committerGitHub <noreply@github.com>2018-05-02 21:22:17 +0200
commitc6e644ec7702dbe80712e775f59215ce2df0dedc (patch)
treed6bf5460b26e44009482296a0b62cdf69b666fe5 /.circleci
parent3de4a6cccf934cbd169e8189b782f440b3dd04d0 (diff)
downloadnavit-c6e644ec7702dbe80712e775f59215ce2df0dedc.tar.gz
rework:android:Move build system from ant to grandle (#553)
rework:android:Move build system from ant to grandle
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml103
1 files changed, 69 insertions, 34 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 827dd6f52..991ebefdc 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -9,6 +9,9 @@ jobs:
steps:
- checkout
- run:
+ name: Id
+ command: sudo cat /etc/*release
+ - run:
name: Setup requirements
command: |
bash ci/setup_common_requirements.sh
@@ -37,45 +40,80 @@ jobs:
command: bash ci/update_doxygen.sh
- store_artifacts:
path: /root/project/doc
- build_android_arm:
+ build_android:
+ working_directory: ~/code
docker:
- - image: navit/android
+ - image: circleci/android:api-27-alpha
+ environment:
+ JVM_OPTS: -Xmx3200m
+ GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
steps:
- checkout
- run:
- name: Build for Android ARM
- command: |
- bash ci/build_android.sh
+ name: Id
+ command: sudo cat /etc/*release
- run:
- name: configure ssh git
- command: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- - add_ssh_keys:
- fingerprints:
- - "16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48"
- - run:
- name: Update beta channel on PlayStore
- command: bash ci/publish.sh
- - store_artifacts:
- path: android-arm/navit/android/bin
+ name: Install cmake gettext libsaxonb-java librsvg2-bin
+ command: |
+ sudo apt-get install cmake gettext libsaxonb-java librsvg2-bin
+ cmake ./ -Dsvg2png_scaling:STRING=-1,24,32,48,64,96,128 -Dsvg2png_scaling_nav:STRING=-1,24,32,48,64,96,128 -Dsvg2png_scaling_flag:STRING=-1,24,32,64,96
- run:
- name: Update Navit-Download-Center
+ name: Process icons
command: |
- bash ci/update_download_center.sh
- build_android_x86:
- docker:
- - image: navit/android
- steps:
- - checkout
+ cd navit/icons
+ make
+ sudo ls -la
+ mkdir ../android/res/drawable-nodpi
+ rename 'y/A-Z/a-z/' *
+ cp *.png ../android/res/drawable-nodpi
+ cd ../../
- run:
- name: Build for Android X86
+ name: Process translations
command: |
- bash ci/build_android_x86.sh
- - store_artifacts:
- path: android-x86/navit/android/bin
+ cd po
+ make
+ sudo ls -la
+ mkdir ../navit/android/res/raw
+ rename 'y/A-Z/a-z/' *
+ cp *.mo ../navit/android/res/raw
+ cd ../
- run:
- name: Update Navit-Download-Center
+ name: Move xml's
command: |
- bash ci/update_download_center.sh
+ cd navit
+ saxonb-xslt -s:navit_shipped.xml -xsl:xslt/android.xslt -o:navitldpi.xml OSD_SIZE=1 ICON_SMALL=24 ICON_MEDIUM=32 ICON_BIG=48
+ saxonb-xslt -s:navit_shipped.xml -xsl:xslt/android.xslt -o:navitmdpi.xml OSD_SIZE=1.33 ICON_SMALL=32 ICON_MEDIUM=48 ICON_BIG=64
+ saxonb-xslt -s:navit_shipped.xml -xsl:xslt/android.xslt -o:navithdpi.xml OSD_SIZE=2 ICON_SMALL=48 ICON_MEDIUM=64 ICON_BIG=96
+ saxonb-xslt -s:navit_shipped.xml -xsl:xslt/android.xslt -o:navitxhdpi.xml OSD_SIZE=2.67 ICON_SMALL=64 ICON_MEDIUM=96 ICON_BIG=128
+ saxonb-xslt -s:navit_shipped.xml -xsl:xslt/android.xslt -o:navitxxhdpi.xml OSD_SIZE=4 ICON_SMALL=96 ICON_MEDIUM=128 ICON_BIG=192
+ saxonb-xslt -s:navit_shipped.xml -xsl:xslt/android.xslt -o:navitxxxhdpi.xml OSD_SIZE=5.33 ICON_SMALL=128 ICON_MEDIUM=192 ICON_BIG=256
+ sudo ls -la
+ mv *dpi.xml android/res/raw
+ cd ../
+ - run:
+ name: Chmod permissions
+ command: sudo chmod +x ./gradlew
+ - run:
+ name: Download Dependencies
+ command: ./gradlew -v
+# command: ./gradlew androidDependencies
+ - run:
+ name: Install ndk
+ command: sdkmanager ndk-bundle
+ - run:
+ name: Build
+ command: ./gradlew assembleDebug
+ - run:
+ name: Run Tests
+ command: ./gradlew tasks --all
+ - store_artifacts:
+ path: navit/android/build/outputs/apk
+ destination: apk
+ - store_artifacts:
+ path: navit/android/build/outputs/logs
+ destination: logs
+ - store_test_results:
+ path: navit/android/build/test-results
build_win32:
<<: *defaults
steps:
@@ -170,8 +208,7 @@ workflows:
build_all:
jobs:
- build_linux
- - build_android_arm
- - build_android_x86
+ - build_android
- build_win32
- build_wince
- build_tomtom_minimal
@@ -179,8 +216,7 @@ workflows:
- run_doxygen:
requires:
- build_linux
- - build_android_arm
- - build_android_x86
+ - build_android
- build_win32
- build_wince
- build_tomtom_minimal
@@ -191,8 +227,7 @@ workflows:
- merge_trunk_in_master:
requires:
- build_linux
- - build_android_arm
- - build_android_x86
+ - build_android
- build_win32
- build_wince
- build_tomtom_minimal