summaryrefslogtreecommitdiff
path: root/platform/android/bitrise.yml
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-03 15:16:49 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-07 18:01:02 -0700
commitf964e40e7e9220d08751d8607af61ac5a7c0794c (patch)
treed34ca5407188fe3d71396faa8a8acceb52d9bd4b /platform/android/bitrise.yml
parentf5d66f362272db034a311d2077dbdb2937c9bbdf (diff)
downloadqtlocation-mapboxgl-f964e40e7e9220d08751d8607af61ac5a7c0794c.tar.gz
[build] Refactor and simplify build system
* Main gyp files are now standardized as platform/<platform>/platform.gyp. * Each platform gyp file defines appropriate loop_lib and headless_lib variables. * Each platform gyp file includes mbgl.gypi, which defines base targets which may be useful to all platforms. * CI targets are consistent across platforms: `make $(PLATFORM) && make test-$(PLATFORM)`. * Renamed the "linux" test app to "glfw". It's now built in OS X CI. * Android build flakiness is fixed. * iOS CI builds the bench and iosapp targets. * Mesa version is now in one place. * CI scripts use bash "strict mode" and correct error handling. * All build output goes to the build directory. * Removed vestigial iOS/OS X/Android Travis scripts.
Diffstat (limited to 'platform/android/bitrise.yml')
-rw-r--r--platform/android/bitrise.yml53
1 files changed, 8 insertions, 45 deletions
diff --git a/platform/android/bitrise.yml b/platform/android/bitrise.yml
index f67edac3d8..c1c4407bde 100644
--- a/platform/android/bitrise.yml
+++ b/platform/android/bitrise.yml
@@ -24,29 +24,15 @@ workflows:
envman add --key SKIPCI --value false
fi
- script:
- title: Install Linux Dependencies
+ title: Build
+ run_if: '{{enveq "SKIPCI" "false"}}'
inputs:
- content: |-
#!/bin/bash
-
+ set -eu -o pipefail
apt-get install -y pkg-config
- - script:
- title: Build Android SDK For arm
- inputs:
- - content: |-
- #!/bin/bash
-
- make android -j4
- - is_debug: 'yes'
- - script:
- title: Run Unit Tests
- inputs:
- - content: |-
- #!/bin/bash
-
- cd platform/android
- ./gradlew testReleaseUnitTest --continue
- - is_debug: 'yes'
+ make android
+ make test-android
- slack:
title: Post to Slack
run_if: '{{enveq "SKIPCI" "false"}}'
@@ -68,47 +54,24 @@ workflows:
scheduled:
steps:
- script:
- title: Install Linux Dependencies
+ title: Build
inputs:
- content: |-
#!/bin/bash
+ set -eu -o pipefail
apt-get install -y pkg-config python-pip python-dev build-essential
pip install awscli
- - script:
- title: Fetch GPG Secring For SDK Signing
- inputs:
- - content: |-
- #!/bin/bash
aws s3 cp s3://mapbox/android/signing-credentials/secring.gpg platform/android/MapboxGLAndroidSDK/secring.gpg
- opts:
- is_expand: true
- - script:
- title: Inject Signing And Publishing Credentials
- inputs:
- - content: |-
- #!/bin/bash
echo "NEXUS_USERNAME=$PUBLISH_NEXUS_USERNAME
NEXUS_PASSWORD=$PUBLISH_NEXUS_PASSWORD
signing.keyId=$SIGNING_KEYID
signing.password=$SIGNING_PASSWORD
signing.secretKeyRingFile=secring.gpg" >> platform/android/MapboxGLAndroidSDK/gradle.properties
- opts:
- is_expand: true
- - script:
- title: Build Mapbox Android SDK For All ABI
- inputs:
- - content: |-
- #!/bin/bash
make apackage -j4
- - script:
- title: Publish To Maven Central
- inputs:
- - content: |-
- #!/bin/bash
cd platform/android
- ./gradlew uploadArchives \ No newline at end of file
+ ./gradlew uploadArchives