Skip to content

Commit

Permalink
Merge 6f9f60b into 5f5130c
Browse files Browse the repository at this point in the history
  • Loading branch information
patjouk committed Sep 11, 2018
2 parents 5f5130c + 6f9f60b commit d7cf31a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -14,7 +14,7 @@ before_script:
- psql -c 'create database network;' -U postgres
script:
- npm test
- pipenv run flake8 network-api/
- pipenv run flake8 tasks.py network-api/
- pipenv run coverage run --source './network-api/networkapi' network-api/manage.py test networkapi
after_success:
- coveralls
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -52,7 +52,7 @@ test_script:
- node --version
- npm --version
- npm test
- "python -m pipenv run flake8 network-api/"
- "python -m pipenv run flake8 tasks.py network-api/"
- "python -m pipenv run python network-api/manage.py test"

cache:
Expand Down
7 changes: 4 additions & 3 deletions tasks.py
Expand Up @@ -64,7 +64,7 @@ def l10n_update(ctx):
def test(ctx):
"""Run tests"""
print("Running flake8")
ctx.run(f"pipenv run flake8 network-api", **PLATFORM_ARG)
ctx.run(f"pipenv run flake8 tasks.py network-api", **PLATFORM_ARG)
print("Running tests")
manage(ctx, "test")

Expand All @@ -81,7 +81,7 @@ def setup(ctx):
ctx.run("pipenv install --dev")
print("Applying database migrations.")
ctx.run("inv migrate")
print("Updating localizable fields");
print("Updating localizable fields")
ctx.run("inv l10n-sync")
ctx.run("inv l10n-update")
print("Creating fake data")
Expand All @@ -99,6 +99,7 @@ def setup(ctx):
ctx.run("pipenv run python network-api/manage.py createsuperuser", pty=True)
print("All done! To start your dev server, run the following:\n inv runserver")


@task
def catch_up(ctx):
"""Install dependencies and apply migrations"""
Expand All @@ -108,7 +109,7 @@ def catch_up(ctx):
ctx.run("pipenv install --dev")
print("Applying database migrations.")
ctx.run("inv migrate")
print("Updating localizable fields");
print("Updating localizable fields")
ctx.run("inv l10n-sync")
ctx.run("inv l10n-update")
print("Updating block information")
Expand Down
File renamed without changes.

0 comments on commit d7cf31a

Please sign in to comment.