forked from thorikawa/CircleCI-iOS-TestFlight-Sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
50 lines (50 loc) · 2.07 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
49
50
machine:
pre:
- brew install nvm jq
- |
curl https://circleci.com/api/v1/project/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/$CIRCLE_BRANCH\?limit\=100\?circle-token\=$CIRCLE_TOKEN
# Log all commits since last commit in last successful build
# - |
# cd $CIRCLE_PROJECT_REPONAME && git fetch --unshallow && git log `echo $(curl -H "accept: application/json" https://circleci.com/api/v1/project/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/$CIRCLE_BRANCH\?limit\=100\&circle-token\=$CIRCLE_TOKEN | jq '[.[] | select(.status=="success" or .status=="fixed") | .all_commit_details[-1].commit][0]') | sed -e 's/^"//' -e 's/"$//'`..HEAD | cat | tee changelog.txt
- echo $PATH
environment:
XCODE_SCHEME: CircleCI-Sample
XCODE_WORKSPACE: CircleCI-Sample.xcworkspace
DEVELOPER_NAME: 'iPhone Distribution: Takahiro Horikawa (HSM2AYDCY3)'
APPNAME: CircleCI-Sample
PROFILE_UUID: 30fc0261-b07e-421a-8b11-ae29168827d2
TESTFLIGHT_DIST_LIST: your-dist-list-name
DYLD_LIBRARY_PATH: /Applications/Xcode-7.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib:$DYLD_LIBRARY_PATH
DYLD_FRAMEWORK_PATH: /Applications/Xcode-7.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib:$DYLD_FRAMEWORK_PATH
post:
- sudo bash -c "printf '127.0.0.1 local.jackpocket.com\n' >> /etc/hosts"
- cat /etc/hosts
xcode:
version: 7.2
dependencies:
override:
- echo "do nothing"
# deployment:
# testflight:
# branch: master
# commands:
# - ./scripts/add-key.sh
# - ./scripts/testflight.sh
# - ./scripts/remove-key.sh
test:
override:
- echo "no tests"
# - |
# if [ -z $CI_PULL_REQUEST ] ; then \
# xctool \
# -reporter pretty \
# CODE_SIGNING_REQUIRED=NO \
# CODE_SIGN_IDENTITY= \
# PROVISIONING_PROFILE= \
# -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' \
# -sdk iphonesimulator \
# -workspace AtticGem.xcworkspace \
# -scheme AtticGemTests \
# -configuration Debug \
# clean test; \
# fi