-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
33 lines (33 loc) · 1.07 KB
/
.travis.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
language: objective-c
osx_image: xcode12
env:
global:
- CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID
before_install:
- gem install cocoapods -v '1.8.3'
install:
- brew install swiftlint
- brew install swiftformat
before_script:
- |
bash -c "
if [ ! -z "$CC_TEST_REPORTER_ID" ]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter && \
chmod +x ./cc-test-reporter && \
./cc-test-reporter before-build
fi
"
script:
- gem install travis
- travis lint .travis.yml --no-interactive
- swiftlint
- xcodebuild clean build test -workspace Example/FeatureFlags.xcworkspace -scheme FeatureFlags-Example -destination "platform=iOS Simulator,name=iPhone 11 Pro Max" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
- pod lib lint
- swift build # Check Swift Package Manager module compiles
after_script:
- |
bash -c "
if [ ! -z "$CC_TEST_REPORTER_ID" ]; then
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
fi
"