Skip to content

Commit 2565b59

Browse files
committed
Merge branch 'release/1.0.1-CI'
2 parents d094246 + dde633d commit 2565b59

File tree

2 files changed

+75
-38
lines changed

2 files changed

+75
-38
lines changed

.codecov.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# For more configuration details:
2+
# https://docs.codecov.io/docs/codecov-yaml
3+
4+
# Check if this file is valid by running in bash:
5+
# curl -X POST --data-binary @.codecov.yml https://codecov.io/validate
6+
7+
# Coverage configuration
8+
# ----------------------
9+
coverage:
10+
11+
notify:
12+
slack:
13+
default:
14+
url: "https://hooks.slack.com/services/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"
15+
threshold: 1%
16+
only_pulls: false
17+
branches: null
18+
flags: null
19+
paths: null
20+
21+
status:
22+
patch: false
23+
24+
range: 70..90 # First number represents red, and second represents green
25+
# (default is 70..100)
26+
round: down # up, down, or nearest
27+
precision: 2 # Number of decimal places, between 0 and 5
28+
29+
# Ignoring Paths
30+
# --------------
31+
# which folders/files to ignore
32+
33+
# Pull request comments:
34+
# ----------------------
35+
# Diff is the Coverage Diff of the pull request.
36+
# Files are the files impacted by the pull request
37+
comment:
38+
layout: diff, files # accepted in any order: reach, diff, flags, and/or files
39+
40+

.travis.yml

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -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
4848
script:
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

Comments
 (0)