Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 36 additions & 30 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ version: 2.1

jobs:
danger:
executor: xcode-10
executor: xcode-11
steps:
- setup
- run:
name: Install xchtmlreport
command: |
brew install https://raw.githubusercontent.com/TitouanVanBelle/XCTestHTMLReport/develop/xchtmlreport.rb
brew install --HEAD https://raw.githubusercontent.com/TitouanVanBelle/XCTestHTMLReport/develop/xchtmlreport.rb
- run:
name: Install xcparse
command: |
brew install chargepoint/xcparse/xcparse
- run:
name: Tests & Code Coverage
when: always
Expand Down Expand Up @@ -48,34 +52,34 @@ jobs:
when: always
command: bash <(curl -s https://codecov.io/bash) -f build/BonMot-iOS/slather/cobertura.xml -X coveragepy -X gcov -X xcode

test-xcode-10-2:
executor: xcode-10
build-swift-package:
executor: xcode-11
steps:
- setup
- run: ./scripts/macOS.sh SWIFT_VERSION=5
- run: ./scripts/iOS-11.4.sh SWIFT_VERSION=5
- run: ./scripts/iOS-12.2.sh SWIFT_VERSION=5
- run: ./scripts/tvOS-12.2.sh SWIFT_VERSION=5
- run: ./scripts/watchOS-5.2.sh SWIFT_VERSION=5
- run: swift build

test-swift-5-0:
executor: xcode-11
environment:
SWIFT_VERSION: "5.0"
steps:
- setup
- run: bundle exec fastlane test_all
- lint-pod:
swift-version: "5.0"

test-xcode-10-1:
executor: xcode-10
macos:
xcode: "10.1.0"
test-swift-4-2:
executor: xcode-11
environment:
SWIFT_VERSION: "4.2"
steps:
- setup
- run: ./scripts/macOS.sh SWIFT_VERSION=4.2
- run: ./scripts/iOS-12.1.sh SWIFT_VERSION=4.2
- run: ./scripts/tvOS-11.2.sh SWIFT_VERSION=4.2
- run: ./scripts/tvOS-12.1.sh SWIFT_VERSION=4.2
- run: ./scripts/watchOS-5.1.sh SWIFT_VERSION=4.2
- run: bundle exec fastlane test_all
- lint-pod:
swift-version: "4.2"

carthage-build:
executor: xcode-10
executor: xcode-11
steps:
- checkout
- run:
Expand All @@ -87,20 +91,16 @@ jobs:
- run: carthage build --no-skip-current && for platform in Mac iOS tvOS watchOS; do test -d Carthage/Build/${platform}/BonMot.framework || exit 1; done

deploy-to-cocoapods:
executor: xcode-10
executor: xcode-11
steps:
- setup
- run:
name: Install CocoaPods Specs Repo
command: |
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
- run: bundle exec pod trunk push


executors:
xcode-10:
xcode-11:
macos:
xcode: "10.2.1"
xcode: "11.3.1"
environment:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
Expand Down Expand Up @@ -145,11 +145,15 @@ workflows:
filters:
tags:
only: /.*/
- test-xcode-10-2:
- build-swift-package:
filters:
tags:
only: /.*/
- test-swift-5-0:
filters:
tags:
only: /.*/
- test-xcode-10-1:
- test-swift-4-2:
filters:
tags:
only: /.*/
Expand All @@ -159,8 +163,10 @@ workflows:
only: /.*/
- deploy-to-cocoapods:
requires:
- test-xcode-10-2
- test-xcode-10-1
- danger
- build-swift-package
- test-swift-5-0
- test-swift-4-2
- carthage-build
filters:
tags:
Expand Down
106 changes: 95 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,44 @@
# OS X
# Created by https://www.gitignore.io/api/swift,macos,swiftpm,swiftpackagemanager
# Edit at https://www.gitignore.io/?templates=swift,macos,swiftpm,swiftpackagemanager

### macOS ###
# General
.DS_Store
fastlane/report.xml
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -12,17 +47,66 @@ build/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
profile
xcuserdata/

## Other
*.moved-aside
DerivedData
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
.build/

# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# AppCode
.idea
# Accio dependency management
Dependencies/
.accio/

# Bundler
.bundle
vendor
# fastlane
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

### SwiftPackageManager ###
Packages
xcuserdata
*.xcodeproj
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ disabled_rules: # rule identifiers to exclude from running
- identifier_name
- large_tuple
- file_length
- implicit_return # Re-enable when we drop support for Swift 4.2

statement_position:
statement_mode: uncuddled_else
Expand Down
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading