summaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorPierre GRANDIN <pgrandin@users.noreply.github.com>2017-09-05 10:07:06 -0700
committerGitHub <noreply@github.com>2017-09-05 10:07:06 -0700
commit063e2c7ebdc1771de1bc7da7012ab2e2d6041540 (patch)
treefcd14f3262846b67d7c70aca8d2f1debb8dfd669 /.circleci
parent4c89accc118cfc5b6dfe4f8913d2d8c3dc189b99 (diff)
downloadnavit-063e2c7ebdc1771de1bc7da7012ab2e2d6041540.tar.gz
Upgrade to CircleCI v2 (#310)
* Switching to circleci v2 * Only build for Linux for now * Sudo is not required anymore * Update before installing packages * Cope with non interactive terminals * Use ci's working_directory * Fixed typo * Disable QT5 for now * Build for more platforms * Fixed workflow definition * sudo is not required anymore * Update before installing * Install wget when building for tomtom * Revert to 14.04 base image * Install unzip for build_tomtom_* * Install wget for build_android_* * Install wget for build_android_* * Install cmake for win32 build * Install gettext for the win32 build * Install build-essential for tomtom builds * Setup common requirements * Install packages to build tt environment install packages need to build tt environment correct navit path remove arm-genmarshal which disturbing a second build run * Splitting the tomtom builds into more steps * Splitting the tomtom builds into more steps * Working on the tomtom minimal build * Fixed some paths issues for tomtom_minimal * Added missing exports for tomtom_minimal * Added missing tomtom requirements * Save the result of the tomtom_minimal build * Fixing the tomtom plugin build for CI v2 * Fixed job name misconfiguration * Use less relative paths * Fixed espeakdsp.c path * Adding tomtom assets * Removed superfluous popd * Fixed contrib path * Adding tomtom assets * Compile espeakdsp directly to the correct path * Compile espeakdsp directly to the correct path * Compile espeakdsp directly to the correct path * Recursively copy contrib/tomtom assets * Fixed tomtom specific icons path * Preparing the android ARM build for CI v2 * Adapting build path * Added missing packages for android builds * Updating android x86 scripts for ci v2 * Android-25 will require jdk-8 * Install openjdk-8 for Ubuntu 14.04 * Ensures that add-apt is available for android builds * Cope with non interactive terminals * Ensures that openjdk-7 isn't installed * Updated artifacts for ci v2 / android arm * Fixed apk path for ci_v2 * Fixed leftovers path for ci_v2 * Fixed artifacts path for android arm * Fixed typos * Fixed toolchain misconfiguration * Specify android's api/nkd api versions * Fixed apk path for ci_v2 * Store android/x86 artifacts
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml107
1 files changed, 107 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 000000000..ca49945be
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,107 @@
+version: 2
+defaults: &defaults
+ docker:
+ - image: ubuntu:14.04
+
+jobs:
+ build_linux:
+ <<: *defaults
+ steps:
+ - checkout
+ - run:
+ name: Build for Linux
+ command: |
+ bash ci/setup_common_requirements.sh
+ bash ci/build_linux.sh
+ build_android_arm:
+ <<: *defaults
+ steps:
+ - checkout
+ - run:
+ name: Setup common requirements
+ command: |
+ bash ci/setup_common_requirements.sh
+ - run:
+ name: Prepare the Android build environment
+ command: |
+ bash ci/setup_android.sh
+ - run:
+ name: Build for Android ARM
+ command: |
+ bash ci/build_android.sh
+ - store_artifacts:
+ path: android-arm/navit
+ build_android_x86:
+ <<: *defaults
+ steps:
+ - checkout
+ - run:
+ name: Setup common requirements
+ command: |
+ bash ci/setup_common_requirements.sh
+ - run:
+ name: Prepare the Android build environment
+ command: |
+ bash ci/setup_android.sh
+ - run:
+ name: Build for Android X86
+ command: |
+ bash ci/build_android_x86.sh
+ - store_artifacts:
+ path: android-x86/navit
+ build_win32:
+ <<: *defaults
+ steps:
+ - checkout
+ - run:
+ name: Build for Windows
+ command: |
+ bash ci/setup_common_requirements.sh
+ bash ci/build_win32.sh
+ build_tomtom_minimal:
+ <<: *defaults
+ steps:
+ - checkout
+ - run:
+ name: Setup common requirements
+ command: |
+ bash ci/setup_common_requirements.sh
+ - run:
+ name: Build the Tomtom toolchain
+ command: |
+ bash ci/setup_tomtom_requirements.sh
+ - run:
+ name: Build for Tomtom (minimal)
+ command: |
+ bash ci/build_tomtom_minimal.sh
+ - store_artifacts:
+ path: /tmp/tomtom/sdcard
+ build_tomtom_plugin:
+ <<: *defaults
+ steps:
+ - checkout
+ - run:
+ name: Setup common requirements
+ command: |
+ bash ci/setup_common_requirements.sh
+ - run:
+ name: Build the Tomtom toolchain
+ command: |
+ bash ci/setup_tomtom_requirements.sh
+ - run:
+ name: Build for Tomtom (plugin)
+ command: |
+ bash ci/build_tomtom_plugin.sh
+ - store_artifacts:
+ path: /tmp/tomtom/sdcard
+
+workflows:
+ version: 2
+ build_all:
+ jobs:
+ - build_linux
+ - build_android_arm
+ - build_android_x86
+ - build_win32
+ - build_tomtom_minimal
+ - build_tomtom_plugin