From cc4a21e0da33c2ca90dc4ba9d4571953a7378d65 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 2 Feb 2019 21:07:27 -0800 Subject: [PATCH 1/2] --include-vcs-ignore Seeing if I can get this branch to be able to run datasette heroku deploy on Travis CI running Ubuntu Trusty --- datasette/publish/heroku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasette/publish/heroku.py b/datasette/publish/heroku.py index af53a37a..d42f4e83 100644 --- a/datasette/publish/heroku.py +++ b/datasette/publish/heroku.py @@ -96,4 +96,4 @@ def publish_subcommand(publish): create_output = check_output(cmd).decode("utf8") app_name = json.loads(create_output)["name"] - call(["heroku", "builds:create", "-a", app_name]) + call(["heroku", "builds:create", "-a", app_name, "--include-vcs-ignore"]) From 01978ddb9682c828cafddaf9ca625e08ba3ba3a4 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 5 Feb 2019 19:59:29 -0800 Subject: [PATCH 2/2] Expect '--include-vcs-ignore' --- tests/test_publish_heroku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_publish_heroku.py b/tests/test_publish_heroku.py index 3d8fb6e6..852403ca 100644 --- a/tests/test_publish_heroku.py +++ b/tests/test_publish_heroku.py @@ -57,7 +57,7 @@ def test_publish_heroku(mock_call, mock_check_output, mock_which): open("test.db", "w").write("data") result = runner.invoke(cli.cli, ["publish", "heroku", "test.db"]) assert 0 == result.exit_code, result.output - mock_call.assert_called_once_with(["heroku", "builds:create", "-a", "f"]) + mock_call.assert_called_once_with(["heroku", "builds:create", "-a", "f", "--include-vcs-ignore"]) @mock.patch("shutil.which")