Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Add buddybuild to take care of ios and macOS tests (#35)" This reverts commit d9e4781. * coments * boop * better make file * wip * wip * test * wip * wip * wip * blha
- Loading branch information
Showing
9 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
macos: | ||
xcode: "9.0" | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Mac Info | ||
command: system_profiler SPSoftwareDataType | ||
|
||
- run: | ||
name: Generate Xcode project file | ||
command: swift package generate-xcodeproj | ||
|
||
- run: | ||
name: Run iOS tests | ||
command: make test-ios | ||
environment: | ||
SNAPSHOT_ARTIFACTS: $CIRCLE_ARTIFACTS | ||
|
||
- run: | ||
name: Run macOS tests | ||
command: make test-macos | ||
environment: | ||
SNAPSHOT_ARTIFACTS: $CIRCLE_ARTIFACTS | ||
|
||
- run: | ||
name: Run Swift tests | ||
command: make test-swift | ||
environment: | ||
SNAPSHOT_ARTIFACTS: $CIRCLE_ARTIFACTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
os: | ||
- linux | ||
# - osx | ||
env: | ||
language: generic | ||
sudo: required | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
test: | ||
docker build --tag snapshot-testing . && docker run --rm snapshot-testing | ||
test-linux: | ||
docker build --tag snapshot-testing . \ | ||
&& docker run --rm snapshot-testing | ||
|
||
test-macos: | ||
set -o pipefail && \ | ||
xcodebuild test \ | ||
-scheme SnapshotTesting-Package \ | ||
-destination platform="macOS" \ | ||
| xcpretty | ||
|
||
test-ios: | ||
set -o pipefail && \ | ||
xcodebuild test \ | ||
-scheme SnapshotTesting-Package \ | ||
-destination platform="iOS Simulator,name=iPhone 8,OS=11.0" \ | ||
| xcpretty | ||
|
||
test-swift: | ||
swift test | ||
|
||
test-all: test-linux test-mac test-ios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-7 Bytes
(99%)
Tests/SnapshotTestingTests/__Snapshots__/SnapshotTestingTests/testExample.1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1 Byte
(100%)
...hotTestingTests/__Snapshots__/SnapshotTestingTests/testWithName.1.info-dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.