forked from tangrams/tangram-es
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
48 lines (48 loc) · 1.85 KB
/
circle.yml
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
machine:
xcode:
version: 8.1
environment:
# Dummy values, Circle won't run without a project and scheme.
XCODE_PROJECT: build/tangram.xcodeproj
XCODE_SCHEME: phony
dependencies:
pre:
- brew install awscli
- gem install jazzy
checkout:
post:
- git submodule update --init
test:
override:
- make ios TANGRAM_IOS_FRAMEWORK_SLIM=1
- make ios-docs
deployment:
snapshots:
branch: master
commands:
# Build the framework in debug mode and package it into pod.zip
- make clean-ios
- make ios-framework-universal DEBUG=1
- cd build/ios-framework-universal/Debug/ && zip -r ${CIRCLE_ARTIFACTS}/pod.zip TangramMap.framework
# Add the readme file.
- cd platforms/ios/framework/ && zip ${CIRCLE_ARTIFACTS}/pod.zip README.md
# Add the license file.
- zip ${CIRCLE_ARTIFACTS}/pod.zip LICENSE
# Upload the Cocoapods archive to S3.
- aws s3 cp ${CIRCLE_ARTIFACTS}/pod.zip s3://ios.mapzen.com/tangram-snapshots/tangram-snapshot-${CIRCLE_BUILD_NUM}.zip
- aws s3 cp ${CIRCLE_ARTIFACTS}/pod.zip s3://ios.mapzen.com/tangram-latest.zip
releases:
# For any tag of the form 1, 1.2, 1.2.3, etc. we will deploy a release build.
tag: /[0-9]+(\.[0-9]+)*/
owner: tangrams
commands:
# Build the framework in release mode and package it into pod.zip
- make clean-ios
- make ios-framework-universal RELEASE=1
- cd build/ios-framework-universal/Release/ && zip -r ${CIRCLE_ARTIFACTS}/pod.zip TangramMap.framework
# Add the readme file.
- cd platforms/ios/framework/ && zip ${CIRCLE_ARTIFACTS}/pod.zip README.md
# Add the license file.
- zip ${CIRCLE_ARTIFACTS}/pod.zip LICENSE
# Upload the Cocoapods archive to S3.
- aws s3 cp ${CIRCLE_ARTIFACTS}/pod.zip s3://ios.mapzen.com/tangram-releases/tangram-release-${CIRCLE_TAG}.zip