Skip to content

Commit 54df82f

Browse files
carby565kimtaesu
authored andcommitted
Add codecov (+7 squashed commits)
Squashed commits: [2a344bc] Add codecov [d0faf3e] Add Codecov [45f8311] Add codecov [7b212f7] Add codecov [f273db0] Add codecov [a48ce1d] Add Codecov [d525d9a] Add derivedDataPath [Build] in .travis.yml
1 parent 82cc658 commit 54df82f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ language: swift
99
osx_image: xcode11.2
1010
sudo: false
1111

12-
xcode_project: AGString.xcodeproj
12+
xcode_project: AGString.xcodeproj
1313

1414
xcode_scheme:
15-
- AGString
15+
- AGString
1616

1717

1818
env:
@@ -21,6 +21,10 @@ env:
2121
- CACHE_NAME=tvOS PLATFORM=tvOS
2222
- CACHE_NAME=watchOS PLATFORM=watchOS
2323

24+
install:
25+
- pip install codecov
26+
27+
2428
before_script:
2529
- export RUN_TESTS="YES"
2630
- export SCHEME="${TRAVIS_XCODE_SCHEME}-${PLATFORM}"
@@ -46,7 +50,7 @@ before_script:
4650
;;
4751
esac
4852
script:
49-
- set -o pipefail
53+
- set -o pipefail
5054
- xcodebuild -version
5155
- xcodebuild -showsdks
5256

@@ -58,7 +62,7 @@ script:
5862

5963
- echo "BUILD FOR DEBUG"
6064
- 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;
65+
xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -derivedDataPath Build/ -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
6266
else
6367
xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
6468
fi
@@ -72,9 +76,9 @@ script:
7276
# fi
7377

7478
after_success:
75-
- bash <(curl -s https://codecov.io/bash) -t "$CODE_COV_TOKEN"
79+
- codecov
7680

7781
notifications:
7882
slack:
7983
rooms:
80-
- swiftalgorithmclub:rJxmAKJgpZNBKR2ogwcHbtGu#agstring
84+
- swiftalgorithmclub:rJxmAKJgpZNBKR2ogwcHbtGu#agstring

0 commit comments

Comments
 (0)