Skip to content

Commit

Permalink
Merge pull request #20 from keith/ks/custom-interpreter
Browse files Browse the repository at this point in the history
Fix python2 interpreter
  • Loading branch information
albertdai committed Jun 23, 2020
2 parents 4018845 + 41b18a2 commit f52307f
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions xctestrunner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,33 @@ package(default_visibility = ["//visibility:public"])
load("@subpar//:subpar.bzl", "par_binary")

py_library(
name = 'shared',
srcs = glob(['shared/*.py']),
name = "shared",
srcs = glob(["shared/*.py"]),
)

py_library(
name = 'simulator',
srcs = glob(['simulator_control/*.py']),
name = "simulator",
srcs = glob(["simulator_control/*.py"]),
deps = [
':shared',
":shared",
],
)

par_binary(
name = 'ios_test_runner',
name = "ios_test_runner",
srcs = glob(
['test_runner/*.py'],
exclude = ['test_runner/TestProject/**']
["test_runner/*.py"],
exclude = ["test_runner/TestProject/**"],
),
main = 'test_runner/ios_test_runner.py',
compiler_args = [
"--interpreter",
"/usr/bin/python2.7",
],
data = glob(["test_runner/TestProject/**"]),
main = "test_runner/ios_test_runner.py",
python_version = "PY2",
deps = [
':shared',
':simulator',
":shared",
":simulator",
],
data = glob(['test_runner/TestProject/**']),
)

0 comments on commit f52307f

Please sign in to comment.