Skip to content

Commit fabf89a

Browse files
committed
Migrate to Code Climate
1 parent a48dd99 commit fabf89a

File tree

5 files changed

+29
-4
lines changed

5 files changed

+29
-4
lines changed

.codeclimate.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
exclude_patterns:
2+
- Examples/

.github/workflows/continuous-integration.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
submodules: 'recursive'
4747

4848
- name: Install test dependencies
49+
run: gem install slather
4950
run: cd "Examples" && carthage bootstrap --platform ios && cd ..
5051

5152
- name: Run Cocoapods' linter
@@ -81,8 +82,16 @@ jobs:
8182
if: env.run_tests == 'true'
8283
env:
8384
DESTINATION: ${{ matrix.destination }}
84-
run: set -o pipefail && xcodebuild test -project "$EXAMPLE_PROJECT" -scheme "$EXAMPLE_SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug -enableCodeCoverage YES ONLY_ACTIVE_ARCH=YES | xcpretty -c;
85+
run: set -o pipefail && xcodebuild test -project "$EXAMPLE_PROJECT" -scheme "$EXAMPLE_SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug -enableCodeCoverage -derivedDataPath Build/ YES ONLY_ACTIVE_ARCH=YES | xcpretty -c;
86+
87+
- name: Convert coverage data
88+
if: env.run_tests == 'true'
89+
run: slather
8590

8691
- name: Upload coverage
87-
if: success() && env.run_tests == 'true'
88-
run: bash <(curl -s https://codecov.io/bash) -cF ios
92+
uses: paambaati/[email protected]
93+
if: env.run_tests == 'true'
94+
env:
95+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
96+
with:
97+
coverageLocations: "Tests"

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
## Build generated
66
build/
77
DerivedData
8+
Tests
89

910
## Various settings
1011
*.pbxuser

.slather.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage_service: cobertura_xml
2+
xcodeproj: Instructions.xcodeproj
3+
workspace: Instructions.xcworkspace
4+
scheme: Instructions
5+
source_directory: Sources
6+
output_directory: Tests
7+
ignore:
8+
- Examples/*

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# ![Instructions](https://i.imgur.com/0WFRs8e.png)
22

3-
[![Build status](https://github.com/ephread/Instructions/workflows/build/badge.svg)](https://github.com/ephread/Instructions/actions?query=workflow%3Abuild) [![codebeat badge](https://codebeat.co/badges/7bbb17b5-2cde-4108-aac0-eefcd439cf9f)](https://codebeat.co/projects/github-com-ephread-instructions) [![codecov](https://codecov.io/gh/ephread/Instructions/branch/master/graph/badge.svg)](https://codecov.io/gh/ephread/Instructions) [![CocoaPods Shield](https://img.shields.io/cocoapods/v/Instructions.svg)](https://cocoapods.org/pods/Instructions) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Join the chat at https://gitter.im/ephread/Instructions](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ephread/Instructions?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3+
[![Build status](https://github.com/ephread/Instructions/workflows/build/badge.svg)](https://github.com/ephread/Instructions/actions?query=workflow%3Abuild)
4+
[![Code Climate - Maintainability](https://img.shields.io/codeclimate/maintainability/ephread/Instructions?color=brightscreen)](https://codeclimate.com/github/ephread/Instructions)
5+
[![codecov](https://img.shields.io/codeclimate/coverage-letter/ephread/Instructions)](https://codeclimate.com/github/ephread/Instructions)
6+
[![CocoaPods Shield](https://img.shields.io/cocoapods/v/Instructions.svg)](https://cocoapods.org/pods/Instructions)
7+
[![Carthage compatible](https://img.shields.io/badge/carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
8+
[![Join the chat at https://gitter.im/ephread/Instructions](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ephread/Instructions?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
49

510
Add customizable coach marks into your iOS project. Available for both iPhone and iPad.
611

0 commit comments

Comments
 (0)