Skip to content
Snippets Groups Projects
Commit 1706ef35 authored by Jeremy Epstein's avatar Jeremy Epstein
Browse files

keep trying to make travis happy

parent dc4ee6f6
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ import shutil ...@@ -7,7 +7,6 @@ import shutil
from invoke import task, run from invoke import task, run
ENVPATH = '/usr/bin/env'
HERE = os.path.abspath(os.path.dirname(__file__)) HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, 'cookiecutter.json'), 'r') as fp: with open(os.path.join(HERE, 'cookiecutter.json'), 'r') as fp:
COOKIECUTTER_SETTINGS = json.load(fp) COOKIECUTTER_SETTINGS = json.load(fp)
...@@ -33,10 +32,7 @@ def clean(): ...@@ -33,10 +32,7 @@ def clean():
def _run_manage_command(command): def _run_manage_command(command):
run( run('FLASK_APP="autoapp" flask {0}'.format(command), echo=True)
'FLASK_APP="{0}.autoapp" {1} flask {2}'.format(
COOKIECUTTER_SETTINGS['app_name'], ENVPATH, command),
echo=True)
@task(pre=[clean, build]) @task(pre=[clean, build])
...@@ -44,6 +40,5 @@ def test(): ...@@ -44,6 +40,5 @@ def test():
"""Run lint commands and tests.""" """Run lint commands and tests."""
run('pip install -r {0} --ignore-installed'.format(REQUIREMENTS), echo=True) run('pip install -r {0} --ignore-installed'.format(REQUIREMENTS), echo=True)
os.chdir(COOKIE) os.chdir(COOKIE)
run('pwd', echo=True)
#_run_manage_command('lint') #_run_manage_command('lint')
_run_manage_command('test') _run_manage_command('test')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment