forked from kinecosystem/kin-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·24 lines (21 loc) · 1007 Bytes
/
.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
language: swift
osx_image: xcode10.2
xcode_workspace: KinSDK.xcworkspace
xcode_scheme: KinSDKTests
xcode_sdk: iphonesimulator12.2
env:
- TEST_MATRIX=build
- TEST_MATRIX=test
script:
- |
if [ $TEST_MATRIX == "build" ]; then
xcodebuild -workspace KinSDK.xcworkspace -scheme KinSDKSampleApp -sdk iphonesimulator12.2 -configuration "Debug"
fi
- |
if [ $TEST_MATRIX == "test" ]; then
# inject integration environment params for testing from env variable by string replacing content of a template file
sed -e "s@INTEG_TESTS_NETWORK_URL@$INTEG_TESTS_NETWORK_URL@" -e "s@INTEG_TESTS_NETWORK_PASSPHRASE@$INTEG_TESTS_NETWORK_PASSPHRASE@" -e "s@INTEG_TESTS_NETWORK_FRIENDBOT@$INTEG_TESTS_NETWORK_FRIENDBOT@" scripts/IntegEnvironmentTemplate.swift > KinSDKTests/IntegEnvironment.swift
xcodebuild test -workspace KinSDK.xcworkspace -scheme KinSDKTestsHost -destination 'platform=iOS Simulator,name=iPhone X'
fi
after_success:
- bash <(curl -s https://codecov.io/bash)