-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (31 loc) · 856 Bytes
/
.travis.yml
File metadata and controls
31 lines (31 loc) · 856 Bytes
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
language: swift
osx_image: xcode10
cache:
- bundler
- cocoapods
env:
matrix:
- TEST_TYPE=iOS
- TEST_TYPE=Lint
- TEST_TYPE=CocoaPods
install:
- |
if [ "$TEST_TYPE" = Lint ]; then
brew install swiftlint || brew upgrade swiftlint
elif [ "$TEST_TYPE" = CocoaPods ] || [ "$TEST_TYPE" = iOS ]; then
bundle install --path vendor/bundle
bundle exec pod repo update --silent
fi
if [ "$TEST_TYPE" = iOS ]; then
bundle exec pod install
fi
script:
- |
if [ "$TEST_TYPE" = iOS ]; then
set -o pipefail
xcodebuild -workspace OmiseGO.xcworkspace -scheme "OmiseGO" -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone X" test | xcpretty -c
elif [ "$TEST_TYPE" = Lint ]; then
swiftlint lint --config .swiftlint.yml
elif [ "$TEST_TYPE" = CocoaPods ]; then
bundle exec pod lib lint --verbose
fi