Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis #1

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
43da9af
Added SnapshoTest feature
balavor Nov 3, 2017
d0db9b7
Fixes in PlayerControls for thumbnail tests
balavor Nov 3, 2017
c4d40fc
Fixed gitignore
balavor Nov 3, 2017
c231c0f
Fixed gitignore and relocated source filies
balavor Nov 3, 2017
37866d7
Minor fixes
balavor Nov 6, 2017
8ffcff8
Shared schemes
balavor Nov 6, 2017
482d151
Fixes in PlayerControls
balavor Nov 6, 2017
cf60625
Added snapshots for all necessary resolutions
balavor Nov 6, 2017
7f1ec47
HostWindow
AndriiDoroshko Nov 8, 2017
f255284
new brunch
AndriiDoroshko Nov 9, 2017
dcba259
Implemened iPad splitView test
AndriiDoroshko Nov 9, 2017
a1ef988
Added verify for all iPads
AndriiDoroshko Nov 10, 2017
4d5fe2f
Added verify for all iPhones
balavor Nov 10, 2017
b1180f1
beckup
AndriiDoroshko Nov 10, 2017
bb64426
final HostUIWindow tests
AndriiDoroshko Nov 10, 2017
f04b777
Fixes for testcases, image names
balavor Nov 10, 2017
9e75ecf
decrease quantity of snaps
AndriiDoroshko Nov 13, 2017
4db3caf
decrease quantity of snaps
AndriiDoroshko Nov 13, 2017
5dc751e
travice.yml
AndriiDoroshko Nov 13, 2017
1167e35
travic
AndriiDoroshko Nov 13, 2017
91a4d0f
traviы
AndriiDoroshko Nov 13, 2017
ba9f523
Update .travis.yml
AndriiDoroshko Nov 13, 2017
a2ecc1d
Create Fastfile
AndriiDoroshko Nov 13, 2017
e75a4bc
Update .travis.yml
AndriiDoroshko Nov 13, 2017
18579d5
Update .travis.yml
AndriiDoroshko Nov 13, 2017
70c3733
Update .travis.yml
AndriiDoroshko Nov 13, 2017
cfa5d9a
Update .travis.yml
AndriiDoroshko Nov 13, 2017
93c5856
Add files via upload
AndriiDoroshko Nov 13, 2017
78c5f7c
Update .travis.yml
AndriiDoroshko Nov 14, 2017
2bc765d
Update .travis.yml
AndriiDoroshko Nov 14, 2017
98b31b9
Update .travis.yml
AndriiDoroshko Nov 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ playground.xcworkspace
# Packages/
# Package.pins
.build/
.DS_Store

# CocoaPods
#
Expand All @@ -50,6 +51,10 @@ PlayerControls/Carthage/Checkouts

PlayerControls/Carthage/Build

Demo/Carthage/Checkouts

Demo/Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
Expand All @@ -61,3 +66,4 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/README.md
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: swift

osx_image: xcode9.1
xcode_workspace: PlayerControls
xcode_scheme: Demo
xcode_sdk: iphonesimulator11.1


branches:
only:
- travis

before_install:
- brew update
- brew install sourcery
- brew install carthage
- cd Demo
- carthage update --platform iOS
- cd ..
- brew cask install fastlane

script: fastlane verify

after_success:
- 'ASSETID=$(curl -s -H "Authorization: token 7df813dd3d4ee046ec74580a1b72b3e111ec1522" "https://api.github.com/repos/Azmadan213/OneMobileSDK-controls-ios/tree/travis" | jq ".[0].id")'
#- 'curl -XDELETE -s -H "Authorization: token ${BUILD_KEY}" "https://api.github.com/repos/Azmadan213/OneMobileSDK-controls-ios/tree/travis/assets/$ASSETID"'
- 'curl -XPOST -s -H "Authorization: token 7df813dd3d4ee046ec74580a1b72b3e111ec1522" -H "Content-Type: application/zip" --data-binary @./Fillable-1.0-SNAPSHOT.zip "https://uploads.github.com/repos/Azmadan213/OneMobileSDK-controls-ios/tree/travis/assets?name=qwe"'
1 change: 1 addition & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "facebook/ios-snapshot-test-case"
1 change: 1 addition & 0 deletions Demo/Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "facebook/ios-snapshot-test-case"
1 change: 1 addition & 0 deletions Demo/Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "facebook/ios-snapshot-test-case" "2.1.4"
512 changes: 509 additions & 3 deletions Demo/Demo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

130 changes: 130 additions & 0 deletions Demo/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0910"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEE134FD1F0FD2F100C47354"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "06208A871FAC867700085FF5"
BuildableName = "DefaultControls.xctest"
BlueprintName = "DefaultControls"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "06208A951FAC868700085FF5"
BuildableName = "AdVideoControls.xctest"
BlueprintName = "AdVideoControls"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEE134FD1F0FD2F100C47354"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEE134FD1F0FD2F100C47354"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "IMAGE_DIFF_DIR"
value = "$(SOURCE_ROOT)/Tests/FailureDifferences"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "FB_REFERENCE_IMAGE_DIR"
value = "$(SOURCE_ROOT)/Tests/ReferenceImages"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "RECORD_MODE"
value = "$FALSE"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEE134FD1F0FD2F100C47354"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
158 changes: 158 additions & 0 deletions Demo/Demo.xcodeproj/xcshareddata/xcschemes/Record.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0910"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEE134FD1F0FD2F100C47354"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "06208A951FAC868700085FF5"
BuildableName = "AdVideoControls.xctest"
BlueprintName = "AdVideoControls"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "06208A871FAC867700085FF5"
BuildableName = "DefaultControls.xctest"
BlueprintName = "DefaultControls"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "06208A951FAC868700085FF5"
BuildableName = "AdVideoControls.xctest"
BlueprintName = "AdVideoControls"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "06208A871FAC867700085FF5"
BuildableName = "DefaultControls.xctest"
BlueprintName = "DefaultControls"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEE134FD1F0FD2F100C47354"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEE134FD1F0FD2F100C47354"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "FB_REFERENCE_IMAGE_DIR"
value = "$(SOURCE_ROOT)/Tests/ReferenceImages"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "IMAGE_DIFF_DIR"
value = "$(SOURCE_ROOT)/Tests/FailureDiffs"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "RECORD_MODE"
value = "TRUE"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEE134FD1F0FD2F100C47354"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading