@@ -27,57 +27,54 @@ before_script:
2727 - echo "TRAVIS_XCODE_SCHEME ${TRAVIS_XCODE_SCHEME} PLATFORM ${PLATFORM}"
2828
2929 - case "${PLATFORM}" in
30- " iOS" )
31- export SDK="iphonesimulator13.2";
32- export DESTINATION="platformplatform =iOS Simulator,OS=13.2,name=iPhone 8";
33- ;;
34- " macOS" )
35- export SDK="macosx10.15";
36- export DESTINATION="platform=macOS,arch=x86_64";
37- ;;
38- " tvOS" )
39- export SDK="appletvsimulator13.2";
40- export DESTINATION="platform=tvOS Simulator,OS=13.2,name=Apple TV";
41- ;;
42- " watchOS" )
43- export SDK="watchsimulator6.1";
44- export DESTINATION="platform=watchOS Simulator,OS=6.1,name=Apple Watch Series 5 - 44mm";
45- ; ;
46- esac
47-
30+ " iOS" )
31+ export SDK="iphonesimulator13.2";
32+ export DESTINATION="platform =iOS Simulator,OS=13.2,name=iPhone 8";
33+ ;;
34+ " macOS" )
35+ export SDK="macosx10.15";
36+ export DESTINATION="platform=macOS,arch=x86_64";
37+ ;;
38+ " tvOS" )
39+ export SDK="appletvsimulator13.2";
40+ export DESTINATION="platform=tvOS Simulator,OS=13.2,name=Apple TV";
41+ ;;
42+ " watchOS" )
43+ export SDK="watchsimulator6.1";
44+ export DESTINATION="platform=watchOS Simulator,OS=6.1,name=Apple Watch Series 5 - 44mm";
45+ export RUN_TESTS="NO" ;
46+ ;;
47+ esac
4848script :
4949 - set -o pipefail
5050 - xcodebuild -version
5151 - xcodebuild -showsdks
5252
53- - echo "TRAVIS_XCODE_PROJECT ${TRAVIS_XCODE_PROJECT}"
54- # - xcodebuild clean -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" | xcpretty
5553
56- # Build Framework in Debug and Run Tests if specified
57-
58- - echo "BUILD FOR DEBUG"
59- # - if [ ${RUN_TESTS} == "YES" ]; then
60- # xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
61- # else
62- # xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
63- # fi
54+ - xcodebuild clean -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" | xcpretty
6455
65- # - xcodebuild clean -project "$TRAVIS_XCODE_PROJECT" -scheme "$SCHEME" | xcpretty
56+ # Build Framework in Debug and Run Tests if specified
6657
67- # Build Framework in Release and Run Tests if specified
68- - echo "BUILD FOR RELEASE"
58+
59+ - echo "BUILD FOR DEBUG"
60+ - if [ ${RUN_TESTS} == "YES" ]; then
61+ xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
62+ else
63+ xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
64+ fi
6965
70- - echo "SDK ${SDK}"
71- - echo "DESTINATION ${DESTINATION}"
72- # - if [ ${RUN_TESTS} == "YES" ]; then
73- # xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
74- # else
75- # xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;
76- # fi
66+ - xcodebuild clean -project "$TRAVIS_XCODE_PROJECT" -scheme "$SCHEME" | xcpretty
7767
7868 # # Run `pod lib lint` if specified
7969 # - if [ $POD_LINT == "YES" ] && [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
8070 # pod repo update > /dev/null;
8171 # travis_wait 60 pod lib lint --allow-warnings;
8272 # fi
8373
74+ after_success :
75+ - bash <(curl -s https://codecov.io/bash) -t "$CODE_COV_TOKEN"
76+
77+ notifications :
78+ slack :
79+ rooms :
80+ - swiftalgorithmclub:rJxmAKJgpZNBKR2ogwcHbtGu#agstring
0 commit comments