-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
253 additions
and
0 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
language: go | ||
before_install: make setup | ||
script: make test && make && ruby integration.rb | ||
go: 1.4 |
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,12 @@ | ||
blades: | ||
- source: source.png | ||
mount: after/Assets.xcassets/AppIcon.appiconset | ||
contents: true | ||
- source: source.png | ||
mount: after/Assets.xcassets/Watch.imageset | ||
contents: true | ||
- source: source.png | ||
mount: after/Assets.xcassets/Image.imageset | ||
contents: true | ||
|
||
|
44 changes: 44 additions & 0 deletions
44
...res/full_integration/interpolation/after/Assets.xcassets/AppIcon.appiconset/Contents.json
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,44 @@ | ||
{ | ||
"images": [ | ||
{ | ||
"filename": "source-iphone-29@2x.png", | ||
"idiom": "iphone", | ||
"scale": "2x", | ||
"size": "29x29" | ||
}, | ||
{ | ||
"filename": "source-iphone-29@3x.png", | ||
"idiom": "iphone", | ||
"scale": "3x", | ||
"size": "29x29" | ||
}, | ||
{ | ||
"filename": "source-iphone-40@2x.png", | ||
"idiom": "iphone", | ||
"scale": "2x", | ||
"size": "40x40" | ||
}, | ||
{ | ||
"filename": "source-iphone-40@3x.png", | ||
"idiom": "iphone", | ||
"scale": "3x", | ||
"size": "40x40" | ||
}, | ||
{ | ||
"filename": "source-iphone-60@2x.png", | ||
"idiom": "iphone", | ||
"scale": "2x", | ||
"size": "60x60" | ||
}, | ||
{ | ||
"filename": "source-iphone-60@3x.png", | ||
"idiom": "iphone", | ||
"scale": "3x", | ||
"size": "60x60" | ||
} | ||
], | ||
"info": { | ||
"author": "xcode", | ||
"version": 1 | ||
} | ||
} |
Binary file added
BIN
+724 Bytes
.../interpolation/after/Assets.xcassets/AppIcon.appiconset/source-iphone-29@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.57 KB
.../interpolation/after/Assets.xcassets/AppIcon.appiconset/source-iphone-29@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.31 KB
.../interpolation/after/Assets.xcassets/AppIcon.appiconset/source-iphone-40@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.42 KB
.../interpolation/after/Assets.xcassets/AppIcon.appiconset/source-iphone-40@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.42 KB
.../interpolation/after/Assets.xcassets/AppIcon.appiconset/source-iphone-60@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.7 KB
.../interpolation/after/Assets.xcassets/AppIcon.appiconset/source-iphone-60@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions
26
fixtures/full_integration/interpolation/after/Assets.xcassets/Image.imageset/Contents.json
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,26 @@ | ||
{ | ||
"images": [ | ||
{ | ||
"filename": "source-universal-333@1x.png", | ||
"idiom": "universal", | ||
"scale": "1x", | ||
"size": "333x333" | ||
}, | ||
{ | ||
"filename": "source-universal-333@2x.png", | ||
"idiom": "universal", | ||
"scale": "2x", | ||
"size": "666x666" | ||
}, | ||
{ | ||
"filename": "source-universal-333@3x.png", | ||
"idiom": "universal", | ||
"scale": "3x", | ||
"size": "1000x1000" | ||
} | ||
], | ||
"info": { | ||
"author": "xcode", | ||
"version": 1 | ||
} | ||
} |
Binary file added
BIN
+62 KB
.../interpolation/after/Assets.xcassets/Image.imageset/source-universal-333@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+406 KB
.../interpolation/after/Assets.xcassets/Image.imageset/source-universal-333@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+861 KB
.../interpolation/after/Assets.xcassets/Image.imageset/source-universal-333@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions
44
fixtures/full_integration/interpolation/after/Assets.xcassets/Watch.imageset/Contents.json
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,44 @@ | ||
{ | ||
"images": [ | ||
{ | ||
"filename": "source-universal-333@1x.png", | ||
"idiom": "universal", | ||
"scale": "1x", | ||
"size": "333x333" | ||
}, | ||
{ | ||
"filename": "source-universal-333@2x.png", | ||
"idiom": "universal", | ||
"scale": "2x", | ||
"size": "666x666" | ||
}, | ||
{ | ||
"filename": "source-universal-333@3x.png", | ||
"idiom": "universal", | ||
"scale": "3x", | ||
"size": "1000x1000" | ||
}, | ||
{ | ||
"filename": "source-watch-500@2x.png", | ||
"idiom": "watch", | ||
"scale": "2x", | ||
"size": "1000x1000" | ||
}, | ||
{ | ||
"filename": "source-watch-500@2x.png", | ||
"idiom": "watch", | ||
"scale": "2x", | ||
"size": "1000x1000" | ||
}, | ||
{ | ||
"filename": "source-watch-500@2x.png", | ||
"idiom": "watch", | ||
"scale": "2x", | ||
"size": "1000x1000" | ||
} | ||
], | ||
"info": { | ||
"author": "xcode", | ||
"version": 1 | ||
} | ||
} |
Binary file added
BIN
+62 KB
.../interpolation/after/Assets.xcassets/Watch.imageset/source-universal-333@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+406 KB
.../interpolation/after/Assets.xcassets/Watch.imageset/source-universal-333@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+861 KB
.../interpolation/after/Assets.xcassets/Watch.imageset/source-universal-333@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+861 KB
...tion/interpolation/after/Assets.xcassets/Watch.imageset/source-watch-500@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions
39
...es/full_integration/interpolation/before/Assets.xcassets/AppIcon.appiconset/Contents.json
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,39 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "29x29", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "29x29", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "40x40", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "40x40", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "60x60", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "60x60", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} | ||
|
20 changes: 20 additions & 0 deletions
20
fixtures/full_integration/interpolation/before/Assets.xcassets/Image.imageset/Contents.json
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,20 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
fixtures/full_integration/interpolation/before/Assets.xcassets/Watch.imageset/Contents.json
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,34 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"idiom" : "watch", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "watch", | ||
"scale" : "2x", | ||
"screen-width" : "<=145" | ||
}, | ||
{ | ||
"idiom" : "watch", | ||
"scale" : "2x", | ||
"screen-width" : ">145" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,33 @@ | ||
require 'fileutils' | ||
include FileUtils | ||
|
||
def error_if(condition, msg) | ||
return unless condition | ||
puts msg | ||
exit(1) | ||
end | ||
|
||
puts "Running integration tests..." | ||
|
||
blade = File.join(File.expand_path(File.dirname(__FILE__)), 'blade') | ||
tests = %w{ interpolation } | ||
|
||
tests.each do |test| | ||
test_dir = File.expand_path("fixtures/full_integration/#{test}", File.dirname(__FILE__)) | ||
cd test_dir | ||
rm_rf "after" | ||
cp_r "before", "after" | ||
blade_out = `#{blade}` | ||
error_if(!blade_out.empty?, blade_out) | ||
exit(1) unless blade_out.empty? | ||
diff_out = `git diff #{test_dir}` | ||
error_if(!diff_out.empty?, diff_out) | ||
putc "." | ||
end | ||
|
||
puts "\nOK" | ||
|
||
|
||
|
||
|
||
|