diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..e0f5baf7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: python +python: + - "3.6" + - "3.7" + - "3.8" +install: + - pip install pipenv pytest + - pipenv install + - pytest # <== This runs in Pipenv (a/k/a virtualenv) +# command to run tests +script: + - pytest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 61731706..f80a0759 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,11 +19,6 @@ RUN pipenv install --dev # include rejoiner code (gets overriden by local changes) COPY . /crc-workflow/ -# run migrations -ENV FLASK_APP=./crc/__init__.py -RUN pipenv run flask db upgrade -RUN pipenv run flask load-example-data - # run webserver by default CMD ["pipenv", "run", "python", "./run.py"]