-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
74 lines (64 loc) · 2.2 KB
/
circle.yml
File metadata and controls
74 lines (64 loc) · 2.2 KB
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
# iOS CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/ios-migrating-from-1-2/ for more details
#
version: 2
jobs:
build:
# Specify the Xcode version to use
macos:
xcode: "9.0"
steps:
- checkout
# Install CocoaPods
- run:
name: Install CocoaPods
command: pod install
# Build the app and run tests
- run:
name: "environment information"
command: |
xcrun simctl list devices
xcrun instruments -s
sw_vers -productVersion
- run:
name: pre-start simulator
command: xcrun simctl boot "iPhone 7 (11.0) [" || true
- run:
name: make DerivedData dir
command: mkdir -p $(pwd)/DerivedData/ModuleCache/Session.modulevalidation
# Build the app and run tests
- run:
name: Build and run tests
command: |
sudo gem install fastlane
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
fastlane scan
environment:
SCAN_DEVICE: iPhone 7 (11.0)
SCAN_SCHEME: PhotoApp
SCAN_DERIVED_DATA_PATH: $(pwd)/DerivedData
- run:
name: "Magic Pod Desktop download"
command: |
if [ ! -e MagicPodDesktop0.14.0.zip ]; then
curl -L -O https://github.com/Magic-Pod/japanese-issue-and-doc/releases/download/0.14.0/MagicPodDesktop0.14.0.zip
unzip MagicPodDesktop0.14.0.zip
fi
- run:
name: "Magic Pod Desktop CLI"
command: |
echo -n ${magic_pod_token} > ~/.magic_pod_token
"Magic Pod Desktop.app/Contents/MacOS/Magic Pod Desktop" run --magic_pod_config=$(pwd)/magic_pod_config.circleci.json
# Collect XML test results data to show in the UI,
# and save the same XML files under test-results folder
# in the Artifacts tab
#- store_test_results:
# path: test_output/report.xml
#- store_artifacts:
# path: /tmp/test-results
# destination: scan-test-results
#- store_artifacts:
# path: ~/Library/Logs/scan
# destination: scan-logs