diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 4c36c0e..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,98 +0,0 @@ -# docs: https://docs.gitlab.com/ce/ci/yaml/README.html -stages: - - test - - release - -before_script: - - bundle install - - pod install || pod install --repo-update - -code_coverage: - stage: test - script: - - xcodebuild test -workspace bytes.xcworkspace -scheme bytes -destination 'platform=iOS Simulator,name=iPhone 6s,OS=10.3.1' -enableCodeCoverage YES | xcpretty -s - - slather coverage --scheme bytes --workspace bytes.xcworkspace bytes.xcodeproj - tags: - - macos - - xcode - - ios10.0 - - slather - - cocoapods - cache: - paths: - - Pods - -test_ios11.0: - stage: test - script: - - xcodebuild clean -workspace bytes.xcworkspace -scheme bytes | xcpretty - - xcodebuild test -workspace bytes.xcworkspace -scheme bytes -destination 'platform=iOS Simulator,name=iPhone 6s,OS=11.0' | xcpretty -s - tags: - - macos - - xcode - - ios10.2 - - cocoapods - cache: - paths: - - Pods - -test_ios10.3.1: - stage: test - script: - - xcodebuild clean -workspace bytes.xcworkspace -scheme bytes | xcpretty - - xcodebuild test -workspace bytes.xcworkspace -scheme bytes -destination 'platform=iOS Simulator,name=iPhone 6s,OS=10.3.1' | xcpretty -s - tags: - - macos - - xcode - - ios10.2 - - cocoapods - cache: - paths: - - Pods - -test_ios9.3: - stage: test - script: - - xcodebuild clean -workspace bytes.xcworkspace -scheme bytes | xcpretty - - xcodebuild test -workspace bytes.xcworkspace -scheme bytes -destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.3' | xcpretty -s - tags: - - macos - - xcode - - ios9.3 - - cocoapods - cache: - paths: - - Pods - -test_ios8.4: - stage: test - script: - - xcodebuild clean -workspace bytes.xcworkspace -scheme bytes | xcpretty - - xcodebuild test -workspace bytes.xcworkspace -scheme bytes -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4' | xcpretty -s - tags: - - macos - - xcode - - ios8.2 - - cocoapods - cache: - paths: - - Pods - -generate_documentation: - stage: release - only: - - master - - develop - script: - - jazzy -x -workspace,bytes.xcworkspace,-scheme,bytes - artifacts: - paths: - - docs - expire_in: 1 mos - when: always - name: "jazzy doc" - tags: - - macos - - xcode - - jazzy - - cocoapods diff --git a/.gitlab/issue_templates/release.md b/.gitlab/issue_templates/release.md deleted file mode 100644 index a883e7c..0000000 --- a/.gitlab/issue_templates/release.md +++ /dev/null @@ -1,4 +0,0 @@ -* [ ] changelog schreiben -* [ ] Podspec prüfen -* [ ] auf den master mergen -* [ ] tag erstellen \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..683638f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: objective-c +xcode_workspace: bytes.xcworkspace +xcode_scheme: bytes +xcode_sdk: iphonesimulator +osx_image: xcode9.1 +before_install: + - 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc' +install: + # - gem install danger + - gem install xcpretty +before_script: + - export LANG=en_US.UTF-8 + # - danger +env: + matrix: + - TEST_DEVICE="iPhone 6,OS=11.0" + - TEST_DEVICE="iPhone 6,OS=10.3" + - TEST_DEVICE="iPhone 6,OS=9.3" +script: + - xcodebuild -workspace $TRAVIS_XCODE_WORKSPACE -scheme $TRAVIS_XCODE_SCHEME -sdk iphonesimulator11.0 -destination "platform=iOS Simulator,name=$TEST_DEVICE" test | xcpretty diff --git a/CHANGELOG.md b/CHANGELOG.md index 406a9db..1e03ea9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.9 +* **feature** Release of v1.0 + ## 0.9 * **feature** Added a function to render a UIView into a UIImage. * **feature** Added a function do calculate the difference between two dictionaries. diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 0000000..70f69a0 --- /dev/null +++ b/Dangerfile @@ -0,0 +1,15 @@ +# Sometimes it's a README fix, or something like that - which isn't relevant for +# including in a project's CHANGELOG for example +declared_trivial = github.pr_title.include? "#trivial" +has_pod_changes = !git.modified_files.grep(/Classes/).empty? + +# Make it more obvious that a PR is a work in progress and shouldn't be merged yet +warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]" + +# Warn when there is a big PR +warn("Big PR") if git.lines_of_code > 500 + +has_changelog = git.modified_files.include?("CHANGELOG.md") +if has_pod_changes && !has_changelog && !declared_trivial + fail("Any changes to the cocoapod neet a summary in the changelog.") +end diff --git a/README.md b/README.md index 1b54ebb..fe26eee 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,13 @@ # bytes -[![build status](http://git.tbointeractive.com/chorstmann/bytes/badges/develop/build.svg)](http://git.tbointeractive.com/chorstmann/bytes/commits/develop) -[![coverage report](http://git.tbointeractive.com/chorstmann/bytes/badges/develop/coverage.svg)](http://git.tbointeractive.com/chorstmann/bytes/commits/develop) +[![Build Status](https://travis-ci.org/tbointeractive/bytes.svg?branch=develop)](https://travis-ci.org/tbointeractive/bytes) + **bytes** is a set of tools to cover many all-day tasks in iOS development. ## Get started ### Install via [CocoaPods](http://cocoapods.org/) - -Add the TBO podspec repository as a source in your Podfile -```ruby -source 'git@git.tbointeractive.com:tbopodspecs/tbopodspecs.git' -``` - -And add the bytes Pod +Add the bytes Pod ```ruby pod 'bytes' ``` @@ -27,7 +21,7 @@ Please read the documentation to find out about all the existing bytes. Please start a discussion about a byte before implementing one of your own. We love to discuss new ideas and get a concept straigt early on. ### Testing -Please ensure proper testing of all your code whilst not blindly watching the coverage percentage. +Please ensure proper testing of all your code whilst not blindly watching the coverage percentage. ### Documentation Please add proper documentation to your code (Xcode Editor -> Structure -> Add Documentation). We use [jazzy](https://github.com/realm/jazzy) to generate the docset. Use the `jazzy` command to generate it on your own machine. diff --git a/bytes.podspec b/bytes.podspec index b06d57d..b721a24 100644 --- a/bytes.podspec +++ b/bytes.podspec @@ -9,22 +9,22 @@ Pod::Spec.new do |s| s.name = "bytes" - s.version = "0.9" - s.summary = "Have some bytes" + s.version = "1.0" + s.summary = "bytes is a set of tools to cover many all-day tasks in iOS development." s.description = <<-DESC bytes is a set of tools to cover many all-day tasks in iOS development. DESC - s.homepage = "http://git.tbointeractive.com/chorstmann/bytes" + s.homepage = "https://github.com/tbointeractive/bytes" s.license = "MIT" - s.author = { "Cornelius Horstmann" => "horstmann@tbointeractive.com", "Thorsten Stark" => "stark@tbointeractive.com", "Bernhard Eiling" => "eiling@tbointeractive.com" } + s.author = { "Cornelius Horstmann" => "horstmann@tbointeractive.com", "Thorsten Stark" => "stark@tbointeractive.com", "Bernhard Eiling" => "eiling@tbointeractive.com", "Pascal Stüdlein" => "stuedlein@tbointeractive.com" } s.platform = :ios, "8.2" - s.source = { :git => "git@git.tbointeractive.com:chorstmann/bytes.git", :tag => '0.9'} + s.source = { :git => "https://github.com/tbointeractive/bytes.git", :tag => 'v1.0'} s.source_files = "bytes/bytes/**/*.swift"