Update rules_apple dependency to version 0.10.0.
- Also update the WORKSPACE rules to stuff that isn't broken.
- Add a bazelrc for the common flags.
- Remove the dmg target (requires disabling sandboxing anyway), so now `bazel build //...` works!
Fixes #64
PiperOrigin-RevId: 224827343
diff --git a/.travis.yml b/.travis.yml
index 5a0d67f..c9ed465 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,6 +9,6 @@
script:
- bazel version
- - bazel build //:tulsi --cpu=darwin_x86_64 --apple_platform_type=macos
- - bazel test //src/TulsiGeneratorTests --cpu=darwin_x86_64 --apple_platform_type=macos --test_output=errors
- - bazel test //src/TulsiGeneratorIntegrationTests --cpu=darwin_x86_64 --apple_platform_type=macos --test_output=errors
+ - bazel build //:tulsi
+ - bazel test //src/TulsiGeneratorTests --test_output=errors
+ - bazel test //src/TulsiGeneratorIntegrationTests --test_output=errors
diff --git a/BUILD b/BUILD
index 7003689..44fd47a 100644
--- a/BUILD
+++ b/BUILD
@@ -80,24 +80,6 @@
],
)
-load("@build_bazel_rules_apple//apple:apple_genrule.bzl", "apple_genrule")
-
-apple_genrule(
- name = "tulsi_dmg",
- srcs = [
- ":tulsi.zip",
- "//src/tools:generate_xcodeproj.sh",
- ],
- outs = ["Tulsi.dmg"],
- cmd = " && ".join([
- "unzip -oq $(location :tulsi.zip) -d $(@D)/dmg_root",
- "ln -s /Applications $(@D)/dmg_root/Applications",
- "mkdir \"$(@D)/dmg_root/Tulsi Additional Files\"",
- "cp -f $(location //src/tools:generate_xcodeproj.sh) \"$(@D)/dmg_root/Tulsi Additional Files\"/",
- "hdiutil create -srcfolder $(@D)/dmg_root -volname Tulsi $@",
- ]),
-)
-
filegroup(
name = "for_bazel_tests",
testonly = 1,
diff --git a/WORKSPACE b/WORKSPACE
index 56e9470..66462b3 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,7 +1,9 @@
+load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
+
git_repository(
name = "build_bazel_rules_apple",
remote = "https://github.com/bazelbuild/rules_apple.git",
- tag = "0.8.0",
+ tag = "0.10.0",
)
load(
@@ -18,8 +20,10 @@
)
swift_rules_dependencies()
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
+
http_file(
name = "xctestrunner",
executable = 1,
- url = "https://github.com/google/xctestrunner/releases/download/0.2.2/ios_test_runner.par",
+ urls = ["https://github.com/google/xctestrunner/releases/download/0.2.2/ios_test_runner.par"],
)