This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-candidate' into stable
- Loading branch information
Showing
13 changed files
with
147 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
bazel-* | ||
.kokoro-ios-runner | ||
|
||
# Jazzy | ||
docs/ | ||
|
||
|
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,36 @@ | ||
#!/bin/bash | ||
|
||
# Fail on any error. | ||
set -e | ||
|
||
# Display commands to stderr. | ||
set -x | ||
|
||
if [ ! -d .kokoro-ios-runner ]; then | ||
git clone https://github.com/material-foundation/kokoro-ios-runner.git .kokoro-ios-runner | ||
fi | ||
|
||
pushd .kokoro-ios-runner | ||
git fetch > /dev/null | ||
TAG=$(git tag -l "v3*" | sort | tail -n1) | ||
git checkout $TAG > /dev/null | ||
popd | ||
|
||
if [ -z "$KOKORO_BUILD_NUMBER" ]; then | ||
tests_dir_prefix="" | ||
else | ||
tests_dir_prefix="github/repo/" | ||
fi | ||
|
||
# Fixes a bug in bazel where objc_library targets have a _ prefix. | ||
find ${tests_dir_prefix}tests/unit -type f -name '*.swift' -exec sed -i '' -E "s/import Motion(.+)/import _Motion\1/" {} + || true | ||
stashed_dir=$(pwd) | ||
reset_imports() { | ||
# Undoes our source changes from above. | ||
find ${stashed_dir}/${tests_dir_prefix}tests/unit -type f -name '*.swift' -exec sed -i '' -E "s/import _Motion(.+)/import Motion\1/" {} + || true | ||
} | ||
trap reset_imports EXIT | ||
|
||
./.kokoro-ios-runner/bazel.sh test //:UnitTests 8.1.0 | ||
|
||
echo "Success!" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Description: | ||
# Motion interchange format. | ||
|
||
licenses(["notice"]) # Apache 2.0 | ||
|
||
exports_files(["LICENSE"]) | ||
|
||
load("@bazel_ios_warnings//:strict_warnings_objc_library.bzl", "strict_warnings_objc_library") | ||
|
||
strict_warnings_objc_library( | ||
name = "MotionInterchange", | ||
srcs = glob([ | ||
"src/*.m", | ||
"src/private/*.m", | ||
]), | ||
hdrs = glob([ | ||
"src/*.h", | ||
"src/private/*.h", | ||
]), | ||
enable_modules = 1, | ||
includes = ["src"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
load("@build_bazel_rules_apple//apple:swift.bzl", "swift_library") | ||
|
||
swift_library( | ||
name = "UnitTestsSwiftLib", | ||
srcs = glob([ | ||
"tests/unit/*.swift", | ||
]), | ||
deps = [":MotionInterchange"], | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
objc_library( | ||
name = "UnitTestsLib", | ||
srcs = glob([ | ||
"tests/unit/*.m", | ||
]), | ||
deps = [":MotionInterchange"], | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test") | ||
|
||
ios_unit_test( | ||
name = "UnitTests", | ||
deps = [ | ||
":UnitTestsLib", | ||
":UnitTestsSwiftLib" | ||
], | ||
minimum_os_version = "8.0", | ||
timeout = "short", | ||
visibility = ["//visibility:private"], | ||
) |
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
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,19 +1,19 @@ | ||
PODS: | ||
- CatalogByConvention (2.1.1) | ||
- MotionInterchange (1.1.0) | ||
- MotionInterchange (1.1.1) | ||
|
||
DEPENDENCIES: | ||
- CatalogByConvention | ||
- MotionInterchange (from `./`) | ||
|
||
EXTERNAL SOURCES: | ||
MotionInterchange: | ||
:path: "./" | ||
:path: ./ | ||
|
||
SPEC CHECKSUMS: | ||
CatalogByConvention: c3a5319de04250a7cd4649127fcfca5fe3322a43 | ||
MotionInterchange: b600100244df56c4f462bdacbcd11c44e6305d05 | ||
MotionInterchange: 3556642f403549449a49f05653da3bd932a5e072 | ||
|
||
PODFILE CHECKSUM: '09090d12db5aab00a13fe82da94f338ebd03f5dc' | ||
PODFILE CHECKSUM: 09090d12db5aab00a13fe82da94f338ebd03f5dc | ||
|
||
COCOAPODS: 1.2.1 | ||
COCOAPODS: 1.3.1 |
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,11 @@ | ||
git_repository( | ||
name = "build_bazel_rules_apple", | ||
remote = "https://github.com/bazelbuild/rules_apple.git", | ||
commit = "7ea0557", | ||
) | ||
|
||
git_repository( | ||
name = "bazel_ios_warnings", | ||
remote = "https://github.com/material-foundation/bazel_ios_warnings.git", | ||
commit = "3e61cb5b60f52c8b9c77b5d62364d8b4d25e528f", | ||
) |
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