Skip to content

Commit

Permalink
Merge pull request #1 from Qase/GIT/travis-setup
Browse files Browse the repository at this point in the history
Git/travis setup
  • Loading branch information
dagytran authored Feb 27, 2019
2 parents b6ca010 + 3b60031 commit 59a62af
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ playground.xcworkspace
# Carthage/Checkouts

Carthage/*
Cartfile.resolved
#Cartfile.resolved

# fastlane
#
Expand Down
52 changes: 52 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
os: osx
osx_image: xcode10.1
cache:
directories:
- Carthage
env:
global:
- WORKSPACE=RxGitLabKit.xcworkspace
- IOS_FRAMEWORK_SCHEME="RxGitLabKit-iOS"
- MACOS_FRAMEWORK_SCHEME="RxGitLabKit-macOS"
- TVOS_FRAMEWORK_SCHEME="RxGitLabKit-tvOS"
- WATCHOS_FRAMEWORK_SCHEME="RxGitLabKit-watchOS"
- DEMO_APP_SCHEME="RxGitLabKitDemoApp"
matrix:
- DESTINATION="OS=12.1,name=iPhone XS" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES"
- DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="NO"
- DESTINATION="OS=12.1,name=Apple TV" SCHEME="$TVOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="NO"
- DESTINATION="OS=5.1,name=Apple Watch Series 4 - 44mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" RUN_TESTS="NO" BUILD_EXAMPLE="NO"

before_install:
- brew outdated carthage || brew upgrade carthage || true

before_script:
- |
if [ $SCHEME == $IOS_FRAMEWORK_SCHEME ]; then
carthage bootstrap --cache-builds --platform ios
elif [ $SCHEME == $MACOS_FRAMEWORK_SCHEME ]; then
carthage bootstrap --cache-builds --platform macos
elif [ $SCHEME == $TVOS_FRAMEWORK_SCHEME ]; then
carthage bootstrap --cache-builds --platform tvos
elif [ $SCHEME == $WATCHOS_FRAMEWORK_SCHEME ]; then
carthage bootstrap --cache-builds --platform watchos
fi
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks

# Build Framework in Release and Run Tests if specified
- |
if [ $RUN_TESTS == "YES" ]; then
xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES CODE_SIGN_IDENTITY="" CODE_SIGN_REQUIRED=NO test | xcpretty -f `xcpretty-travis-formatter`
else
xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGN_REQUIRED=NO build | xcpretty -f `xcpretty-travis-formatter`
fi
# Build Example in Debug if specified
- |
if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild -workspace "$WORKSPACE" -scheme "$DEMO_APP_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -f `xcpretty-travis-formatter`
fi
2 changes: 2 additions & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github "ReactiveX/RxSwift" "4.4.1"
github "SnapKit/SnapKit" "4.2.0"
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# RxGitLabKit
[![Build Status](https://travis-ci.org/Qase/RxGitLabKit.svg?branch=master)](https://travis-ci.org/Qase/RxGitLabKit)
[![Platform](https://img.shields.io/badge/platform-iOS%20%7C%20macOS%20%7C%20watchOS%20%7C%20tvOS-lightgrey.svg)](https://qase.github.io/RxGitLabKit/)
[![pod](https://img.shields.io/cocoapods/v/RxGitLabKit.svg)](https://cocoapods.org/)
[![Carthage](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Swift Package Manager](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)

## Description
Swift Reactive [GitLab API](https://gitlab.com/help/api/README.md) v4 client using
Expand All @@ -11,7 +16,7 @@ This library currently supports these endpoint groups:
- [Commits](https://docs.gitlab.com/ee/api/commits.html)
- [Group and Project members](https://docs.gitlab.com/ee/api/members.html)

The HTML documentation generated using [Jazzy](https://github.com/realm/jazzy) can be found on GitLab Pages [here](https://dagytran.gitlab.io/RxGitLabKit).
The HTML documentation generated using [Jazzy](https://github.com/realm/jazzy) can be found on GitHub pages [here](https://qase.github.io/RxGitLabKit/).

Before running the demo app or the tests, download the dependencies using:
```bash
Expand Down
14 changes: 8 additions & 6 deletions RxGitLabKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@
);
inputPaths = (
"$(SRCROOT)/Carthage/Build/tvOS/RxSwift.framework",
"$(SRCROOT)/Carthage/Build/Mac/RxCocoa.framework",
"$(SRCROOT)/Carthage/Build/tvOS/RxCocoa.framework",
);
outputFileListPaths = (
);
Expand Down Expand Up @@ -1862,14 +1862,14 @@
files = (
);
inputPaths = (
"$(SRCROOT)/Carthage/Build/iOS/RxSwift.framework",
"$(SRCROOT)/Carthage/Build/iOS/RxCocoa.framework",
"$(SRCROOT)/Carthage/Build/Mac/RxSwift.framework",
"$(SRCROOT)/Carthage/Build/Mac/RxCocoa.framework",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/usr/local/bin/carthage copy-frameworks";
shellScript = "/usr/local/bin/carthage copy-frameworks\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -3020,6 +3020,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down Expand Up @@ -3054,6 +3055,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand Down Expand Up @@ -4086,7 +4088,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
Expand Down Expand Up @@ -4172,7 +4174,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForTesting = "NO"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
Expand All @@ -35,7 +35,7 @@
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForTesting = "NO"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
Expand All @@ -48,6 +48,20 @@
ReferencedContainer = "container:RxGitLabKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "NO"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6C6EE58421907480006C447E"
BuildableName = "RxGitLabKit-macOSAllTests.xctest"
BlueprintName = "RxGitLabKit-macOSAllTests"
ReferencedContainer = "container:RxGitLabKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand All @@ -56,18 +70,6 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "YES"
parallelizable = "YES"
testExecutionOrdering = "random">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6C6EE58421907480006C447E"
BuildableName = "RxGitLabKit-macOSAllTests.xctest"
BlueprintName = "RxGitLabKit-macOSAllTests"
ReferencedContainer = "container:RxGitLabKit.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
Expand Down

0 comments on commit 59a62af

Please sign in to comment.