From aff7c3e266107d66fbe85168e99dee431ed571fd Mon Sep 17 00:00:00 2001 From: Felix Mau Date: Fri, 7 Feb 2020 18:16:59 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20::=20Replace=20shell=20scr?= =?UTF-8?q?ipts=20with=20fastlane?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 13 ++++++++----- Scripts/pod-lint.sh | 7 ------- Scripts/swift-format.sh | 19 ------------------- Scripts/swift-lint.sh | 19 ------------------- Scripts/test.sh | 20 -------------------- 5 files changed, 8 insertions(+), 70 deletions(-) delete mode 100755 Scripts/pod-lint.sh delete mode 100755 Scripts/swift-format.sh delete mode 100755 Scripts/swift-lint.sh delete mode 100755 Scripts/test.sh diff --git a/.travis.yml b/.travis.yml index f4213bf..6e4a2a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,13 @@ osx_image: xcode11 language: swift +before_script: + - cd Example/ + - bundle install script: -- ./Scripts/swift-format.sh -- ./Scripts/swift-lint.sh -- ./Scripts/pod-lint.sh -- ./Scripts/test.sh + - bundle exec fastlane format + - bundle exec fastlane lint + - bundle exec fastlane tests + - bundle exec fastlane pod_lint after_success: -- bash <(curl -s https://codecov.io/bash) + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/Scripts/pod-lint.sh b/Scripts/pod-lint.sh deleted file mode 100755 index efdaa7c..0000000 --- a/Scripts/pod-lint.sh +++ /dev/null @@ -1,7 +0,0 @@ -# -# pod-lint.sh -# Created by Felix Mau (https://felix.hamburg) -# - -#!/bin/bash -pod lib lint diff --git a/Scripts/swift-format.sh b/Scripts/swift-format.sh deleted file mode 100755 index 74d623a..0000000 --- a/Scripts/swift-format.sh +++ /dev/null @@ -1,19 +0,0 @@ -# -# swift-format.sh -# Created by Felix Mau (https://felix.hamburg) -# - -#!/bin/bash -cd Example/ - -# Path config -PODS_ROOT="Pods" -SWIFTFORMAT="${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat" - -if [ ! -f "$SWIFTFORMAT" ]; then - echo "warning: SwiftFormat not installed!" - exit 1 -fi - -# Run "swiftformat" and break build on any warnings. -$SWIFTFORMAT ../ --lint diff --git a/Scripts/swift-lint.sh b/Scripts/swift-lint.sh deleted file mode 100755 index 80451ac..0000000 --- a/Scripts/swift-lint.sh +++ /dev/null @@ -1,19 +0,0 @@ -# -# swift-lint.sh -# Created by Felix Mau (https://felix.hamburg) -# - -#!/bin/bash -cd Example/ - -# Path config -PODS_ROOT="Pods" -SWIFTLINT="${PODS_ROOT}/SwiftLint/swiftlint" - -if [ ! -f "$SWIFTLINT" ]; then - echo "warning: SwiftLint not installed!" - exit 1 -fi - -# Run "swiftlint" and break build on any warnings. -$SWIFTLINT --strict diff --git a/Scripts/test.sh b/Scripts/test.sh deleted file mode 100755 index 877767a..0000000 --- a/Scripts/test.sh +++ /dev/null @@ -1,20 +0,0 @@ -# -# test.sh -# Created by Felix Mau (https://felix.hamburg) -# -# Based on: -# - http://www.mokacoding.com/blog/running-tests-from-the-terminal/ -# - https://github.com/supermarin/xcpretty#usage -# - https://www.objc.io/issues/6-build-tools/travis-ci/ -# - https://github.com/codecov/example-swift -# - -#!/bin/bash -cd Example/ - -xcodebuild \ - -workspace GradientLoadingBar.xcworkspace \ - -scheme GradientLoadingBar-Example \ - -sdk iphonesimulator \ - -destination 'platform=iOS Simulator,name=iPhone 11 Pro,OS=13.0' \ - build test | xcpretty && exit ${PIPESTATUS[0]}