Skip to content

Commit

Permalink
Merge pull request #110 from vadymmarkov/refactor/travis
Browse files Browse the repository at this point in the history
Add travis config
  • Loading branch information
vadymmarkov authored Aug 29, 2018
2 parents 3d24e21 + 2a07ee9 commit 039b791
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 29 deletions.
26 changes: 0 additions & 26 deletions .travis

This file was deleted.

38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
osx_image: xcode9.4
language: objective-c

env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8

cache:
directories:
- Carthage

before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
- brew install swiftlint || true
- travis_wait 35; bin/bootstrap-if-needed

script:
- set -o pipefail

- echo Build the project for macOS and run the tests
- xcodebuild -project Malibu.xcodeproj -scheme "Malibu-macOS" -sdk macosx clean build
- xcodebuild -project Malibu.xcodeproj -scheme "Malibu-macOS" -sdk macosx -enableCodeCoverage YES test

- echo Build the project for iOS and run the tests
- xcodebuild -project Malibu.xcodeproj -scheme "Malibu-iOS" -sdk iphonesimulator -destination name="iPhone 8" clean build
- xcodebuild -project Malibu.xcodeproj -scheme "Malibu-iOS" -sdk iphonesimulator -destination name="iPhone 8" -enableCodeCoverage YES test

- echo Build the project for tvOS and run the tests
- xcodebuild -project Malibu.xcodeproj -scheme "Malibu-tvOS" -sdk appletvsimulator -destination name="Apple TV" clean build
- xcodebuild -project Malibu.xcodeproj -scheme "Malibu-tvOS" -sdk appletvsimulator -destination name="Apple TV" -enableCodeCoverage YES test

after_success:
- bash <(curl -s https://codecov.io/bash)

notifications:
email: false
5 changes: 2 additions & 3 deletions Malibu.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,6 @@
};
D51FC84D1F72FD0600D722AD = {
CreatedOnToolsVersion = 9.0;
DevelopmentTeam = LG4DBY4QF9;
ProvisioningStyle = Automatic;
};
D5B2E89E1C3A780C00C0327D = {
Expand Down Expand Up @@ -1362,7 +1361,7 @@
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = LG4DBY4QF9;
DEVELOPMENT_TEAM = "";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Carthage/Build/tvOS",
Expand All @@ -1389,7 +1388,7 @@
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = LG4DBY4QF9;
DEVELOPMENT_TEAM = "";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Carthage/Build/tvOS",
Expand Down
99 changes: 99 additions & 0 deletions Malibu.xcodeproj/xcshareddata/xcschemes/Malibu-tvOS.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0940"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D51FC8451F72FD0600D722AD"
BuildableName = "Malibu.framework"
BlueprintName = "Malibu-tvOS"
ReferencedContainer = "container:Malibu.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D51FC84D1F72FD0600D722AD"
BuildableName = "Malibu-tvOSTests.xctest"
BlueprintName = "Malibu-tvOSTests"
ReferencedContainer = "container:Malibu.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D51FC8451F72FD0600D722AD"
BuildableName = "Malibu.framework"
BlueprintName = "Malibu-tvOS"
ReferencedContainer = "container:Malibu.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D51FC8451F72FD0600D722AD"
BuildableName = "Malibu.framework"
BlueprintName = "Malibu-tvOS"
ReferencedContainer = "container:Malibu.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D51FC8451F72FD0600D722AD"
BuildableName = "Malibu.framework"
BlueprintName = "Malibu-tvOS"
ReferencedContainer = "container:Malibu.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

0 comments on commit 039b791

Please sign in to comment.