summaryrefslogtreecommitdiff
path: root/circle.yml
blob: 41433345a9cbdde24c259746313bd0305e913561 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: 2

jobs:

# ------------------------------------------------------------------------------
  build:
    docker:
      - image: mbgl/ci:trigger_job
    working_directory: /
    steps:
      - deploy:
          name: Trigger 'android-debug-arm-v7'
          command: trigger_job android-debug-arm-v7
      - deploy:
          name: Trigger 'android-release-all'
          command: trigger_job android-release-all

# ------------------------------------------------------------------------------
  android-debug-arm-v7:
    docker:
      - image: mbgl/android-ci:ndk-r13b
    working_directory: /src
    environment:
      LD_PRELOAD: /usr/lib/libsysconfcpus.so
      LIBSYSCONFCPUS: 8
      JOBS: 8
      BUILDTYPE: Debug
    steps:
      - checkout
      - run:
          name: Build libmapbox-gl.so for arm-v7
          command: make android-lib-arm-v7
      - run:
          name: Compile Core tests for arm-v7
          command: make android-test-lib-arm-v7
      - run:
          name: Test phone module
          command: make run-android-unit-test
      - run:
          name: Test wear module
          command: make run-android-wear-unit-test
      - run:
          name: Generate Espresso sanity tests
          command: make test-code-android
      - run:
          name: Check Java code style
          command: make android-checkstyle

# ------------------------------------------------------------------------------
  android-release-all:
    docker:
      - image: mbgl/android-ci:ndk-r13b
    working_directory: /src
    environment:
      LD_PRELOAD: /usr/lib/libsysconfcpus.so
      LIBSYSCONFCPUS: 8
      JOBS: 8
      BUILDTYPE: Release
    steps:
      - checkout
      - run:
          name: Build libmapbox-gl.so for arm-v7
          command: make android-lib-arm-v7
      - run:
          name: Build libmapbox-gl.so for arm-v8
          command: make android-lib-arm-v8
      - run:
          name: Build libmapbox-gl.so for arm-v5
          command: make android-lib-arm-v5
      - run:
          name: Build libmapbox-gl.so for mips
          command: make android-lib-mips
      - run:
          name: Build libmapbox-gl.so for x86
          command: make android-lib-x86
      - run:
          name: Build libmapbox-gl.so for x86-64
          command: make android-lib-x86-64
      - run:
          name: Build package
          command: make apackage
      - run:
          name: Show statistics
          command: platform/android/scripts/metrics.sh