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]}